[Zope3-checkins] CVS: Zope3/lib/python/Zope/App/ComponentArchitecture - InterfaceField.py:1.3
Holger Krekel
hpk@devel.trillke.net
Thu, 5 Dec 2002 08:27:35 -0500
Update of /cvs-repository/Zope3/lib/python/Zope/App/ComponentArchitecture
In directory cvs.zope.org:/tmp/cvs-serv27419/lib/python/Zope/App/ComponentArchitecture
Modified Files:
InterfaceField.py
Log Message:
- refactored/renamed the fields in IField.py interfaces
together with Martijn Faassen to have expressive and
consistent names.
- please note that now the 'required' field defaults
to true. you have to explicitly state that you
want a Field to be optional (i.e. non-required).
- improved the docstrings
- modified the unittests to reflect the new situation
=== Zope3/lib/python/Zope/App/ComponentArchitecture/InterfaceField.py 1.2 => 1.3 ===
--- Zope3/lib/python/Zope/App/ComponentArchitecture/InterfaceField.py:1.2 Wed Dec 4 04:54:04 2002
+++ Zope3/lib/python/Zope/App/ComponentArchitecture/InterfaceField.py Thu Dec 5 08:27:02 2002
@@ -16,17 +16,17 @@
$Id$
"""
-from Zope.Schema.IField import IEnumeratable
-from Zope.Schema import Enumeratable
+from Zope.Schema.IField import IValueSet
+from Zope.Schema import ValueSet
from Interface import Interface
from Interface.IInterface import IInterface
from Zope.Schema.Exceptions import ValidationError
-class IInterfaceField(IEnumeratable):
+class IInterfaceField(IValueSet):
u"""Fields with Interfaces as values
"""
-class InterfaceField(Enumeratable):
+class InterfaceField(ValueSet):
__doc__ = IInterfaceField.__doc__
__implements__ = IInterfaceField