[Zope3-checkins] CVS: Zope3/src/zope/configuration - backward.py:1.6 xmlconfig.py:1.22 zopeconfigure.py:1.4

Stephan Richter srichter at cosmos.phy.tufts.edu
Mon Apr 26 19:15:27 EDT 2004


Update of /cvs-repository/Zope3/src/zope/configuration
In directory cvs.zope.org:/tmp/cvs-serv905/src/zope/configuration

Modified Files:
	backward.py xmlconfig.py zopeconfigure.py 
Log Message:


Update field initializations to reflect API changes.




=== Zope3/src/zope/configuration/backward.py 1.5 => 1.6 ===
--- Zope3/src/zope/configuration/backward.py:1.5	Mon Nov  3 16:37:55 2003
+++ Zope3/src/zope/configuration/backward.py	Mon Apr 26 19:14:56 2004
@@ -45,19 +45,13 @@
 class IDescribed(interface.Interface):
 
     name = schema.TextLine(
-        __doc__=
-        """Directive name
-
-        The name of the directive being defined
-        """,
+        title=u"Directive name",
+        description=u"The name of the directive being defined"
         )
 
     description = schema.Text(
-        __doc__=
-        """Directive discription
-
-        This should document how the directive is used.
-        """,
+        title=u"Directive discription",
+        description=u"This should document how the directive is used.",
         default=u"",
         )
 
@@ -66,12 +60,10 @@
     """
 
     attributes = schema.Bytes(
-        __doc__=
-        """Attribute names
-
-        This is a space-speratated list of attribute names. This is
-        used to provide a mimimal specification the attributes used.
-        """,
+        title=u"Attribute names",
+        description=u"This is a space-speratated list of attribute names. "
+                    u"This is used to provide a mimimal specification the "
+                    u"attributes used.",
         default="",
         )
 
@@ -80,11 +72,8 @@
     """
     
     handler = config.fields.GlobalObject(
-        __doc__=
-        """Directive handler
-
-        The dotted name of the directive handler
-        """,
+        title=u"Directive handler",
+        description=u"The dotted name of the directive handler",
         )
 
 class ISubdirectiveContext(ISubdirectiveInfo, config.IConfigurationContext):
@@ -290,11 +279,8 @@
 class IAttribute(IDescribed):
 
     required = config.fields.Bool(
-        __doc__=
-        """Required
-
-        Is the attribute required?
-        """,
+        title=u"Required",
+        description=u"Is the attribute required?",
         required=True,
         default=False,
         )


=== Zope3/src/zope/configuration/xmlconfig.py 1.21 => 1.22 ===
--- Zope3/src/zope/configuration/xmlconfig.py:1.21	Mon Mar  1 16:22:08 2004
+++ Zope3/src/zope/configuration/xmlconfig.py	Mon Apr 26 19:14:56 2004
@@ -290,21 +290,16 @@
 class IInclude(Interface):
 
     file = schema.BytesLine(
-        __doc__=
-        """Configuration file name
-
-        The name of a configuration file to be included,
-        relative to the directive containing the
-        including configuration file.
-
-        """,
+        title=u"Configuration file name",
+        description=u"The name of a configuration file to be included, "
+                    u"relative to the directive containing the "
+                    u"including configuration file.",
         required=False,
         )
 
     files = schema.BytesLine(
-        __doc__=
-        """Configuration file name pattern
-
+        title=u"Configuration file name pattern",
+        description=u"""\
         The names of multiple configuration files to be included,
         expressed as a file-name pattern, relative to the directive
         containing the including configuration file.  The pattern can
@@ -320,15 +315,13 @@
 
         The file names are included in sorted order, where sorting is
         without regard to case.
-
         """,
         required=False,
         )
 
     package = config.fields.GlobalObject(
-        __doc__=
-        """Include package
-
+        title=u"Include package",
+        description=u"""\
         Include the named file (or configure.zcml)
         from the directory of this package.
         """,


=== Zope3/src/zope/configuration/zopeconfigure.py 1.3 => 1.4 ===
--- Zope3/src/zope/configuration/zopeconfigure.py:1.3	Fri Jan 23 11:59:38 2004
+++ Zope3/src/zope/configuration/zopeconfigure.py	Mon Apr 26 19:14:56 2004
@@ -108,23 +108,19 @@
 class IZopeConfigure(Interface):
 
     package = config.fields.GlobalObject(
-        __doc__=
-        """Package
-
-        The package to be used for evaluating relative imports and file names.
-        """,
+        title=u"Package",
+        description=u"The package to be used for evaluating relative imports "
+                    u"and file names.",
         required=False)
 
     i18n_domain = schema.BytesLine(
-        __doc__=
-        """Internationalization domain
-
-        This is a name for the software project. It must be a legal file-system
-        name as it will be used to contruct names for directories containing
-        translation data.
-
-        The domain defines a namespace for the message ids used by a project.
-        """,
+        title=u"Internationalization domain",
+        description=u"This is a name for the software project. It must be a "
+                    u"legal file-system name as it will be used to contruct "
+                    u"names for directories containing translation data. "
+                    u"\n"
+                    u"The domain defines a namespace for the message ids "
+                    u"used by a project.",
         required=False)
 
 class ZopeConfigure(config.GroupingContextDecorator):




More information about the Zope3-Checkins mailing list