1.1 --- a/XSLForms/Constants.py Sat Jul 16 20:59:05 2005 +0000
1.2 +++ b/XSLForms/Constants.py Sat Jul 16 20:59:14 2005 +0000
1.3 @@ -1,6 +1,24 @@
1.4 #!/usr/bin/env python
1.5
1.6 -"Constants for XSLForms."
1.7 +"""
1.8 +Constants for XSLForms.
1.9 +
1.10 +Copyright (C) 2005 Paul Boddie <paul@boddie.org.uk>
1.11 +
1.12 +This library is free software; you can redistribute it and/or
1.13 +modify it under the terms of the GNU Lesser General Public
1.14 +License as published by the Free Software Foundation; either
1.15 +version 2.1 of the License, or (at your option) any later version.
1.16 +
1.17 +This library is distributed in the hope that it will be useful,
1.18 +but WITHOUT ANY WARRANTY; without even the implied warranty of
1.19 +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
1.20 +Lesser General Public License for more details.
1.21 +
1.22 +You should have received a copy of the GNU Lesser General Public
1.23 +License along with this library; if not, write to the Free Software
1.24 +Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
1.25 +"""
1.26
1.27 path_separator = "/"
1.28 pair_separator = "$"
2.1 --- a/XSLForms/Fields.py Sat Jul 16 20:59:05 2005 +0000
2.2 +++ b/XSLForms/Fields.py Sat Jul 16 20:59:14 2005 +0000
2.3 @@ -2,33 +2,52 @@
2.4 # -*- coding: iso-8859-1 -*-
2.5
2.6 """
2.7 -Classes which process field collections, producing instance
2.8 -documents. Each field entry consists of a field name mapped
2.9 -to a string value, where the field name may have the following
2.10 -formats:
2.11 +Interpretation of field collections from sources such as HTTP request parameter
2.12 +dictionaries.
2.13 +
2.14 +Copyright (C) 2005 Paul Boddie <paul@boddie.org.uk>
2.15 +
2.16 +This library is free software; you can redistribute it and/or
2.17 +modify it under the terms of the GNU Lesser General Public
2.18 +License as published by the Free Software Foundation; either
2.19 +version 2.1 of the License, or (at your option) any later version.
2.20 +
2.21 +This library is distributed in the hope that it will be useful,
2.22 +but WITHOUT ANY WARRANTY; without even the implied warranty of
2.23 +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
2.24 +Lesser General Public License for more details.
2.25 +
2.26 +You should have received a copy of the GNU Lesser General Public
2.27 +License along with this library; if not, write to the Free Software
2.28 +Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
2.29 +
2.30 +--------
2.31 +
2.32 +Classes which process field collections, producing instance documents. Each
2.33 +field entry consists of a field name mapped to a string value, where the field
2.34 +name may have the following formats:
2.35
2.36 /name1#n1/name2
2.37 /name1#n1/name2#n2/name3
2.38 /name1#n1/name2#n2/name3#n3/name4
2.39 ...
2.40
2.41 -The indexes n1, n2, n3, ... indicate the position of elements
2.42 -(starting from 1) in the entire element list, whose elements
2.43 -may have different names. For example:
2.44 +The indexes n1, n2, n3, ... indicate the position of elements (starting from 1)
2.45 +in the entire element list, whose elements may have different names. For
2.46 +example:
2.47
2.48 /zoo#1/name
2.49 /zoo#1/cage#1/name
2.50 /zoo#1/cage#2/name
2.51 /zoo#1/funding#3/contributor#1/name
2.52
2.53 -Where multiple values can be collected for a given field, the
2.54 -following notation is employed:
2.55 +Where multiple values can be collected for a given field, the following notation
2.56 +is employed:
2.57
2.58 /package#1/categories#1/category##value
2.59
2.60 -Some fields may contain the "=" string. This string is
2.61 -reserved and all text following it is meant to specify a path
2.62 -into a particular document. For example:
2.63 +Some fields may contain the "=" string. This string is reserved and all text
2.64 +following it is meant to specify a path into a particular document. For example:
2.65
2.66 _action_add_animal=/zoo#1/cage#2
2.67 """
3.1 --- a/XSLForms/Output.py Sat Jul 16 20:59:05 2005 +0000
3.2 +++ b/XSLForms/Output.py Sat Jul 16 20:59:14 2005 +0000
3.3 @@ -2,6 +2,22 @@
3.4
3.5 """
3.6 XSL-based form templating.
3.7 +
3.8 +Copyright (C) 2005 Paul Boddie <paul@boddie.org.uk>
3.9 +
3.10 +This library is free software; you can redistribute it and/or
3.11 +modify it under the terms of the GNU Lesser General Public
3.12 +License as published by the Free Software Foundation; either
3.13 +version 2.1 of the License, or (at your option) any later version.
3.14 +
3.15 +This library is distributed in the hope that it will be useful,
3.16 +but WITHOUT ANY WARRANTY; without even the implied warranty of
3.17 +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
3.18 +Lesser General Public License for more details.
3.19 +
3.20 +You should have received a copy of the GNU Lesser General Public
3.21 +License along with this library; if not, write to the Free Software
3.22 +Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
3.23 """
3.24
3.25 import Constants
4.1 --- a/XSLForms/Prepare.py Sat Jul 16 20:59:05 2005 +0000
4.2 +++ b/XSLForms/Prepare.py Sat Jul 16 20:59:14 2005 +0000
4.3 @@ -2,6 +2,22 @@
4.4
4.5 """
4.6 Preparation of templating stylesheets.
4.7 +
4.8 +Copyright (C) 2005 Paul Boddie <paul@boddie.org.uk>
4.9 +
4.10 +This library is free software; you can redistribute it and/or
4.11 +modify it under the terms of the GNU Lesser General Public
4.12 +License as published by the Free Software Foundation; either
4.13 +version 2.1 of the License, or (at your option) any later version.
4.14 +
4.15 +This library is distributed in the hope that it will be useful,
4.16 +but WITHOUT ANY WARRANTY; without even the implied warranty of
4.17 +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
4.18 +Lesser General Public License for more details.
4.19 +
4.20 +You should have received a copy of the GNU Lesser General Public
4.21 +License along with this library; if not, write to the Free Software
4.22 +Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
4.23 """
4.24
4.25 import XSLOutput
5.1 --- a/XSLForms/Resources.py Sat Jul 16 20:59:05 2005 +0000
5.2 +++ b/XSLForms/Resources.py Sat Jul 16 20:59:14 2005 +0000
5.3 @@ -1,6 +1,24 @@
5.4 #!/usr/bin/env python
5.5
5.6 -"Resources for use with WebStack."
5.7 +"""
5.8 +Resources for use with WebStack.
5.9 +
5.10 +Copyright (C) 2005 Paul Boddie <paul@boddie.org.uk>
5.11 +
5.12 +This library is free software; you can redistribute it and/or
5.13 +modify it under the terms of the GNU Lesser General Public
5.14 +License as published by the Free Software Foundation; either
5.15 +version 2.1 of the License, or (at your option) any later version.
5.16 +
5.17 +This library is distributed in the hope that it will be useful,
5.18 +but WITHOUT ANY WARRANTY; without even the implied warranty of
5.19 +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
5.20 +Lesser General Public License for more details.
5.21 +
5.22 +You should have received a copy of the GNU Lesser General Public
5.23 +License along with this library; if not, write to the Free Software
5.24 +Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
5.25 +"""
5.26
5.27 import WebStack.Generic
5.28 import XSLForms.Fields
6.1 --- a/XSLForms/Utils.py Sat Jul 16 20:59:05 2005 +0000
6.2 +++ b/XSLForms/Utils.py Sat Jul 16 20:59:14 2005 +0000
6.3 @@ -1,6 +1,24 @@
6.4 #!/usr/bin/env python
6.5
6.6 -"Utility functions for XSLForms documents."
6.7 +"""
6.8 +Utility functions for XSLForms documents.
6.9 +
6.10 +Copyright (C) 2005 Paul Boddie <paul@boddie.org.uk>
6.11 +
6.12 +This library is free software; you can redistribute it and/or
6.13 +modify it under the terms of the GNU Lesser General Public
6.14 +License as published by the Free Software Foundation; either
6.15 +version 2.1 of the License, or (at your option) any later version.
6.16 +
6.17 +This library is distributed in the hope that it will be useful,
6.18 +but WITHOUT ANY WARRANTY; without even the implied warranty of
6.19 +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
6.20 +Lesser General Public License for more details.
6.21 +
6.22 +You should have received a copy of the GNU Lesser General Public
6.23 +License along with this library; if not, write to the Free Software
6.24 +Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
6.25 +"""
6.26
6.27 def add_elements(positions, element_name, element_parent_name=None):
6.28
7.1 --- a/XSLForms/__init__.py Sat Jul 16 20:59:05 2005 +0000
7.2 +++ b/XSLForms/__init__.py Sat Jul 16 20:59:14 2005 +0000
7.3 @@ -1,5 +1,25 @@
7.4 #!/usr/bin/env python
7.5
7.6 +"""
7.7 +XML/XSL-based forms generation and interpretation.
7.8 +
7.9 +Copyright (C) 2005 Paul Boddie <paul@boddie.org.uk>
7.10 +
7.11 +This library is free software; you can redistribute it and/or
7.12 +modify it under the terms of the GNU Lesser General Public
7.13 +License as published by the Free Software Foundation; either
7.14 +version 2.1 of the License, or (at your option) any later version.
7.15 +
7.16 +This library is distributed in the hope that it will be useful,
7.17 +but WITHOUT ANY WARRANTY; without even the implied warranty of
7.18 +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
7.19 +Lesser General Public License for more details.
7.20 +
7.21 +You should have received a copy of the GNU Lesser General Public
7.22 +License along with this library; if not, write to the Free Software
7.23 +Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
7.24 +"""
7.25 +
7.26 __version__ = "0.1"
7.27
7.28 # vim: tabstop=4 expandtab shiftwidth=4