[Zope3-checkins] CVS: Zope3/src/zope/configuration/tests -
test_nested.py:1.3 test_simple.py:1.5
Stephan Richter
srichter at cosmos.phy.tufts.edu
Mon Apr 26 19:14:57 EDT 2004
Update of /cvs-repository/Zope3/src/zope/configuration/tests
In directory cvs.zope.org:/tmp/cvs-serv905/src/zope/configuration/tests
Modified Files:
test_nested.py test_simple.py
Log Message:
Update field initializations to reflect API changes.
=== Zope3/src/zope/configuration/tests/test_nested.py 1.2 => 1.3 ===
--- Zope3/src/zope/configuration/tests/test_nested.py:1.2 Fri Jan 23 11:59:39 2004
+++ Zope3/src/zope/configuration/tests/test_nested.py Mon Apr 26 19:14:57 2004
@@ -197,17 +197,12 @@
"""
name = schema.TextLine(
- __doc__=
- """The schema name
-
- This is a descriptive name for the schema.
- """
+ title=u"The schema name",
+ description=u"This is a descriptive name for the schema."
)
id = schema.Id(
- __doc__=
- """The unique id for the schema
- """
+ title=u"The unique id for the schema"
)
class ISchema(interface.Interface):
@@ -244,58 +239,43 @@
class IFieldInfo(interface.Interface):
name = schema.BytesLine(
- __doc__="The field name"
+ title=u"The field name"
)
title = schema.TextLine(
- __doc__=
- """Title
-
- A short summary or label
- """,
+ title=u"Title",
+ description=u"A short summary or label",
default=u"",
required=False,
)
required = fields.Bool(
- __doc__=
- """Required
-
- Determines whether a value is required.
- """,
+ title=u"Required",
+ description=u"Determines whether a value is required.",
default=True)
readonly = fields.Bool(
- __doc__=
- """Read Only
-
- Can the value be modified?
- """,
+ title=u"Read Only",
+ description=u"Can the value be modified?",
required=False,
default=False)
class ITextInfo(IFieldInfo):
min_length = schema.Int(
- __doc__=
- """Minimum length
-
- Value after whitespace processing cannot have less than
- min_length characters. If min_length is None, there is
- no minimum.
- """,
+ title=u"Minimum length",
+ description=u"Value after whitespace processing cannot have less than "
+ u"min_length characters. If min_length is None, there is "
+ u"no minimum.",
required=False,
min=0, # needs to be a positive number
default=0)
max_length = schema.Int(
- __doc__=
- """Maximum length
-
- Value after whitespace processing cannot have greater
- or equal than max_length characters. If max_length is
- None, there is no maximum.
- """,
+ title=u"Maximum length",
+ description=u"Value after whitespace processing cannot have greater "
+ u"or equal than max_length characters. If max_length is "
+ u"None, there is no maximum.",
required=False,
min=0, # needs to be a positive number
default=None)
@@ -318,13 +298,13 @@
class IIntInfo(IFieldInfo):
min = schema.Int(
- __doc__="Start of the range",
+ title=u"Start of the range",
required=False,
default=None
)
max = schema.Int(
- __doc__="End of the range (excluding the value itself)",
+ title=u"End of the range (excluding the value itself)",
required=False,
default=None
)
=== Zope3/src/zope/configuration/tests/test_simple.py 1.4 => 1.5 ===
--- Zope3/src/zope/configuration/tests/test_simple.py:1.4 Tue Sep 23 15:12:34 2003
+++ Zope3/src/zope/configuration/tests/test_simple.py Mon Apr 26 19:14:57 2004
@@ -178,19 +178,13 @@
class IRegisterFile(interface.Interface):
path = fields.Path(
- __doc__=
- """File path
-
- This is the path name of the file to be registered.
- """
+ title=u"File path",
+ description=u"This is the path name of the file to be registered."
)
title = schema.Text(
- __doc__=
- """Short summary of the file
-
- This will be used in file listings
- """,
+ title=u"Short summary of the file",
+ description=u"This will be used in file listings",
required = False
)
More information about the Zope3-Checkins
mailing list