# HG changeset patch # User paulb # Date 1121547554 0 # Node ID 860ef5c866fc9533734c0deb55a6f38761990a02 # Parent c98fe361a6fc999a4b096a76fee6beb5702b67f6 [project @ 2005-07-16 20:59:14 by paulb] Added explicit licence information to XSLTools files. diff -r c98fe361a6fc -r 860ef5c866fc XSLForms/Constants.py --- a/XSLForms/Constants.py Sat Jul 16 20:59:05 2005 +0000 +++ b/XSLForms/Constants.py Sat Jul 16 20:59:14 2005 +0000 @@ -1,6 +1,24 @@ #!/usr/bin/env python -"Constants for XSLForms." +""" +Constants for XSLForms. + +Copyright (C) 2005 Paul Boddie + +This library is free software; you can redistribute it and/or +modify it under the terms of the GNU Lesser General Public +License as published by the Free Software Foundation; either +version 2.1 of the License, or (at your option) any later version. + +This library is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +Lesser General Public License for more details. + +You should have received a copy of the GNU Lesser General Public +License along with this library; if not, write to the Free Software +Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +""" path_separator = "/" pair_separator = "$" diff -r c98fe361a6fc -r 860ef5c866fc XSLForms/Fields.py --- a/XSLForms/Fields.py Sat Jul 16 20:59:05 2005 +0000 +++ b/XSLForms/Fields.py Sat Jul 16 20:59:14 2005 +0000 @@ -2,33 +2,52 @@ # -*- coding: iso-8859-1 -*- """ -Classes which process field collections, producing instance -documents. Each field entry consists of a field name mapped -to a string value, where the field name may have the following -formats: +Interpretation of field collections from sources such as HTTP request parameter +dictionaries. + +Copyright (C) 2005 Paul Boddie + +This library is free software; you can redistribute it and/or +modify it under the terms of the GNU Lesser General Public +License as published by the Free Software Foundation; either +version 2.1 of the License, or (at your option) any later version. + +This library is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +Lesser General Public License for more details. + +You should have received a copy of the GNU Lesser General Public +License along with this library; if not, write to the Free Software +Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + +-------- + +Classes which process field collections, producing instance documents. Each +field entry consists of a field name mapped to a string value, where the field +name may have the following formats: /name1#n1/name2 /name1#n1/name2#n2/name3 /name1#n1/name2#n2/name3#n3/name4 ... -The indexes n1, n2, n3, ... indicate the position of elements -(starting from 1) in the entire element list, whose elements -may have different names. For example: +The indexes n1, n2, n3, ... indicate the position of elements (starting from 1) +in the entire element list, whose elements may have different names. For +example: /zoo#1/name /zoo#1/cage#1/name /zoo#1/cage#2/name /zoo#1/funding#3/contributor#1/name -Where multiple values can be collected for a given field, the -following notation is employed: +Where multiple values can be collected for a given field, the following notation +is employed: /package#1/categories#1/category##value -Some fields may contain the "=" string. This string is -reserved and all text following it is meant to specify a path -into a particular document. For example: +Some fields may contain the "=" string. This string is reserved and all text +following it is meant to specify a path into a particular document. For example: _action_add_animal=/zoo#1/cage#2 """ diff -r c98fe361a6fc -r 860ef5c866fc XSLForms/Output.py --- a/XSLForms/Output.py Sat Jul 16 20:59:05 2005 +0000 +++ b/XSLForms/Output.py Sat Jul 16 20:59:14 2005 +0000 @@ -2,6 +2,22 @@ """ XSL-based form templating. + +Copyright (C) 2005 Paul Boddie + +This library is free software; you can redistribute it and/or +modify it under the terms of the GNU Lesser General Public +License as published by the Free Software Foundation; either +version 2.1 of the License, or (at your option) any later version. + +This library is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +Lesser General Public License for more details. + +You should have received a copy of the GNU Lesser General Public +License along with this library; if not, write to the Free Software +Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA """ import Constants diff -r c98fe361a6fc -r 860ef5c866fc XSLForms/Prepare.py --- a/XSLForms/Prepare.py Sat Jul 16 20:59:05 2005 +0000 +++ b/XSLForms/Prepare.py Sat Jul 16 20:59:14 2005 +0000 @@ -2,6 +2,22 @@ """ Preparation of templating stylesheets. + +Copyright (C) 2005 Paul Boddie + +This library is free software; you can redistribute it and/or +modify it under the terms of the GNU Lesser General Public +License as published by the Free Software Foundation; either +version 2.1 of the License, or (at your option) any later version. + +This library is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +Lesser General Public License for more details. + +You should have received a copy of the GNU Lesser General Public +License along with this library; if not, write to the Free Software +Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA """ import XSLOutput diff -r c98fe361a6fc -r 860ef5c866fc XSLForms/Resources.py --- a/XSLForms/Resources.py Sat Jul 16 20:59:05 2005 +0000 +++ b/XSLForms/Resources.py Sat Jul 16 20:59:14 2005 +0000 @@ -1,6 +1,24 @@ #!/usr/bin/env python -"Resources for use with WebStack." +""" +Resources for use with WebStack. + +Copyright (C) 2005 Paul Boddie + +This library is free software; you can redistribute it and/or +modify it under the terms of the GNU Lesser General Public +License as published by the Free Software Foundation; either +version 2.1 of the License, or (at your option) any later version. + +This library is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +Lesser General Public License for more details. + +You should have received a copy of the GNU Lesser General Public +License along with this library; if not, write to the Free Software +Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +""" import WebStack.Generic import XSLForms.Fields diff -r c98fe361a6fc -r 860ef5c866fc XSLForms/Utils.py --- a/XSLForms/Utils.py Sat Jul 16 20:59:05 2005 +0000 +++ b/XSLForms/Utils.py Sat Jul 16 20:59:14 2005 +0000 @@ -1,6 +1,24 @@ #!/usr/bin/env python -"Utility functions for XSLForms documents." +""" +Utility functions for XSLForms documents. + +Copyright (C) 2005 Paul Boddie + +This library is free software; you can redistribute it and/or +modify it under the terms of the GNU Lesser General Public +License as published by the Free Software Foundation; either +version 2.1 of the License, or (at your option) any later version. + +This library is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +Lesser General Public License for more details. + +You should have received a copy of the GNU Lesser General Public +License along with this library; if not, write to the Free Software +Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +""" def add_elements(positions, element_name, element_parent_name=None): diff -r c98fe361a6fc -r 860ef5c866fc XSLForms/__init__.py --- a/XSLForms/__init__.py Sat Jul 16 20:59:05 2005 +0000 +++ b/XSLForms/__init__.py Sat Jul 16 20:59:14 2005 +0000 @@ -1,5 +1,25 @@ #!/usr/bin/env python +""" +XML/XSL-based forms generation and interpretation. + +Copyright (C) 2005 Paul Boddie + +This library is free software; you can redistribute it and/or +modify it under the terms of the GNU Lesser General Public +License as published by the Free Software Foundation; either +version 2.1 of the License, or (at your option) any later version. + +This library is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +Lesser General Public License for more details. + +You should have received a copy of the GNU Lesser General Public +License along with this library; if not, write to the Free Software +Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +""" + __version__ = "0.1" # vim: tabstop=4 expandtab shiftwidth=4