[Zope3-checkins] CVS: Zope3/src/zope/configuration -
fields.py:1.8.2.1
Philipp von Weitershausen
philikon at philikon.de
Tue Aug 5 20:03:12 EDT 2003
Update of /cvs-repository/Zope3/src/zope/configuration
In directory cvs.zope.org:/tmp/cvs-serv31679/configuration
Modified Files:
Tag: zcml-interface-field-branch
fields.py
Log Message:
Move the special handlings for '*' meaning None for interfaces from
GlobalObject to InterfaceField, where it belongs.
=== Zope3/src/zope/configuration/fields.py 1.8 => 1.8.2.1 ===
--- Zope3/src/zope/configuration/fields.py:1.8 Mon Aug 4 07:12:06 2003
+++ Zope3/src/zope/configuration/fields.py Tue Aug 5 19:03:08 2003
@@ -106,10 +106,6 @@
ValidationError: (u'Constraint not satisfied', 1)
>>> gg.fromUnicode("y")
42
- >>> g = GlobalObject()
- >>> gg = g.bind(fake)
- >>> gg.fromUnicode('*')
- >>>
"""
@@ -126,11 +122,6 @@
def fromUnicode(self, u):
name = str(u.strip())
-
- # special case, mostly for interfaces
- if name == '*':
- return None
-
try:
value = self.context.resolve(name)
except ConfigurationError, v:
More information about the Zope3-Checkins
mailing list