[Zope3-checkins] CVS: Products3/z3checkins - interfaces.py:1.13 message.py:1.40

Gintautas Miliauskas gintas at pov.lt
Fri May 14 15:56:06 EDT 2004


Update of /cvs-repository/Products3/z3checkins
In directory cvs.zope.org:/tmp/cvs-serv20548

Modified Files:
	interfaces.py message.py 
Log Message:
Looks like Zope3 changed its mind about preconditions back again;
revert changes to interfaces.py (1.12->1.11) and message.py (1.38 -> 1.37).


=== Products3/z3checkins/interfaces.py 1.12 => 1.13 ===
--- Products3/z3checkins/interfaces.py:1.12	Thu Apr 29 08:35:07 2004
+++ Products3/z3checkins/interfaces.py	Fri May 14 15:56:05 2004
@@ -64,13 +64,17 @@
     icons = Text(title=u"Icon definitions", required=False)
 
 
+class IMessageUpload(Interface):
+    pass
+
+
 class ICheckinFolder(IFolder, ICheckinFolderSchema):
     """A marker interface for the checkins folder."""
 
     def __setitem__(name, object):
         """Add a message"""
 
-    __setitem__.precondition = ItemTypePrecondition(IMessage)
+    __setitem__.precondition = ItemTypePrecondition(IMessageUpload)
 
 
 class IMessageContained(IContained):


=== Products3/z3checkins/message.py 1.39 => 1.40 ===
--- Products3/z3checkins/message.py:1.39	Thu Apr 29 09:39:54 2004
+++ Products3/z3checkins/message.py	Fri May 14 15:56:05 2004
@@ -29,7 +29,8 @@
 from zope.proxy import removeAllProxies
 from zope.app.publisher.browser import BrowserView
 
-from interfaces import IMessage, ICheckinMessage, IBookmark, IMessageContained
+from interfaces import IMessage, ICheckinMessage, IMessageContained
+from interfaces import IMessageUpload, IBookmark
 from interfaces import IMessageParser, IMessageArchive
 from interfaces import FormatError
 
@@ -331,7 +332,7 @@
 class MessageUpload:
     """Adding view mixin for uploading checkin messages."""
 
-    implements(IMessageContained)
+    implements(IMessageUpload, IMessageContained)
     data_widget = CustomWidgetFactory(FileWidget)
 
     def createAndAdd(self, data):




More information about the Zope3-Checkins mailing list