[Zope3-checkins] CVS: Zope3/src/zope/app/dublincore - interfaces.py:1.3

Gary Poster gary at zope.com
Thu May 6 12:14:11 EDT 2004


Update of /cvs-repository/Zope3/src/zope/app/dublincore
In directory cvs.zope.org:/tmp/cvs-serv9758/src/zope/app/dublincore

Modified Files:
	interfaces.py 
Log Message:
Convert the field collection behavior as described in 
http://mail.zope.org/pipermail/zope3-dev/2004-May/010797.html

The Sequence field is removed.  As I spoke with Stephan, it may be acceptable to add the Sequence field back in if it actually means something.  Sequence did mean it was iterable but container access API was not described.  It should be described.  IPythonSequence might describe this API.  A Sequence widget should require specification of the factory.

Set now specifies a sets.Set.

IChoiceSequence was removed.




=== Zope3/src/zope/app/dublincore/interfaces.py 1.2 => 1.3 ===
--- Zope3/src/zope/app/dublincore/interfaces.py:1.2	Sat Mar 13 18:00:52 2004
+++ Zope3/src/zope/app/dublincore/interfaces.py	Thu May  6 12:13:40 2004
@@ -17,7 +17,7 @@
 
 from zope.app.annotation.interfaces import IAnnotatable
 from zope.interface import Interface
-from zope.schema import Text, TextLine, Datetime, Sequence
+from zope.schema import Text, TextLine, Datetime, List
 
 class IDublinCoreElementItem(Interface):
     """A qualified dublin core element"""
@@ -269,13 +269,13 @@
     """
 
 
-    creators = Sequence(
+    creators = List(
         title = u'Creators',
         description = u"The unqualified Dublin Core 'Creator' element values",
         value_type = TextLine(),
         )
 
-    subjects = Sequence(
+    subjects = List(
         title = u'Subjects',
         description = u"The unqualified Dublin Core 'Subject' element values",
         value_type = TextLine(),
@@ -287,7 +287,7 @@
         u"The first unqualified Dublin Core 'Publisher' element value.",
         )
 
-    contributors = Sequence(
+    contributors = List(
         title = u'Contributors',
         description =
         u"The unqualified Dublin Core 'Contributor' element values",




More information about the Zope3-Checkins mailing list