[Zope3-checkins] CVS: Products3/z3checkins - interfaces.py:1.12 message.py:1.38

Gintautas Miliauskas gintas at pov.lt
Thu Apr 29 08:35:08 EDT 2004


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

Modified Files:
	interfaces.py message.py 
Log Message:
It seems that Zope3 now checks preconditions later than it used to, so
IMessageUpload is not needed any more.


=== Products3/z3checkins/interfaces.py 1.11 => 1.12 ===
--- Products3/z3checkins/interfaces.py:1.11	Sun Mar 14 05:56:48 2004
+++ Products3/z3checkins/interfaces.py	Thu Apr 29 08:35:07 2004
@@ -64,19 +64,15 @@
     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(IMessageUpload)
+    __setitem__.precondition = ItemTypePrecondition(IMessage)
+
 
-    
 class IMessageContained(IContained):
     """A contained message."""
 


=== Products3/z3checkins/message.py 1.37 => 1.38 ===
--- Products3/z3checkins/message.py:1.37	Fri Mar 26 17:18:08 2004
+++ Products3/z3checkins/message.py	Thu Apr 29 08:35:07 2004
@@ -29,7 +29,6 @@
 from zope.app.publisher.browser import BrowserView
 
 from interfaces import IMessage, ICheckinMessage, IBookmark, IMessageContained
-from interfaces import IMessageUpload
 from interfaces import IMessageParser, IMessageArchive
 from interfaces import FormatError
 
@@ -336,7 +335,7 @@
 class MessageUpload:
     """Adding view mixin for uploading checkin messages."""
 
-    implements(IMessageUpload, IMessageContained)
+    implements(IMessageContained)
     data_widget = CustomWidgetFactory(FileWidget)
 
     def createAndAdd(self, data):




More information about the Zope3-Checkins mailing list