[Zope3-checkins] SVN: Zope3/branches/3.3/ Fix issue 534: make interface more in line with implementation.

Martijn Faassen faassen at infrae.com
Fri Aug 18 06:02:47 EDT 2006


Log message for revision 69636:
  Fix issue 534: make interface more in line with implementation.
  

Changed:
  U   Zope3/branches/3.3/doc/CHANGES.txt
  U   Zope3/branches/3.3/src/zope/app/publication/zopepublication.py
  U   Zope3/branches/3.3/src/zope/dublincore/interfaces.py

-=-
Modified: Zope3/branches/3.3/doc/CHANGES.txt
===================================================================
--- Zope3/branches/3.3/doc/CHANGES.txt	2006-08-18 09:47:04 UTC (rev 69635)
+++ Zope3/branches/3.3/doc/CHANGES.txt	2006-08-18 10:02:46 UTC (rev 69636)
@@ -179,6 +179,10 @@
         cliend id cookies fix up the set cookie path whenever the virtual host
         information changes during a request.
 
+      - Fixed issue 534: changed interface definition to use Tuple instead of
+        List for creators, subjects and contributors, to be in line with the
+        implementation.
+
     Notes
 
       If you register a new default view name for a particular layer, and this

Modified: Zope3/branches/3.3/src/zope/app/publication/zopepublication.py
===================================================================
--- Zope3/branches/3.3/src/zope/app/publication/zopepublication.py	2006-08-18 09:47:04 UTC (rev 69635)
+++ Zope3/branches/3.3/src/zope/app/publication/zopepublication.py	2006-08-18 10:02:46 UTC (rev 69636)
@@ -241,7 +241,7 @@
         # This transaction had an exception that reached the publisher.
         # It must definitely be aborted.
         transaction.abort()
-
+        
         # Reraise Retry exceptions for the publisher to deal with.
         if retry_allowed and isinstance(exc_info[1], Retry):
             raise

Modified: Zope3/branches/3.3/src/zope/dublincore/interfaces.py
===================================================================
--- Zope3/branches/3.3/src/zope/dublincore/interfaces.py	2006-08-18 09:47:04 UTC (rev 69635)
+++ Zope3/branches/3.3/src/zope/dublincore/interfaces.py	2006-08-18 10:02:46 UTC (rev 69636)
@@ -19,7 +19,7 @@
 
 from zope.annotation.interfaces import IAnnotatable
 from zope.interface import Interface
-from zope.schema import Text, TextLine, Datetime, List
+from zope.schema import Text, TextLine, Datetime, Tuple
 
 class IDublinCoreElementItem(Interface):
     """A qualified dublin core element"""
@@ -270,13 +270,13 @@
     """
 
 
-    creators = List(
+    creators = Tuple(
         title = u'Creators',
         description = u"The unqualified Dublin Core 'Creator' element values",
         value_type = TextLine(),
         )
 
-    subjects = List(
+    subjects = Tuple(
         title = u'Subjects',
         description = u"The unqualified Dublin Core 'Subject' element values",
         value_type = TextLine(),
@@ -288,7 +288,7 @@
         u"The first unqualified Dublin Core 'Publisher' element value.",
         )
 
-    contributors = List(
+    contributors = Tuple(
         title = u'Contributors',
         description =
         u"The unqualified Dublin Core 'Contributor' element values",



More information about the Zope3-Checkins mailing list