[CMF-checkins] CVS: Products/CMFCalendar - Event.py:1.24.4.1

Tres Seaver tseaver at palladion.com
Fri Jul 15 18:41:46 EDT 2005


Update of /cvs-repository/Products/CMFCalendar
In directory cvs.zope.org:/tmp/cvs-serv16776/CMFCalendar

Modified Files:
      Tag: tseaver-z3_interfaces-branch
	Event.py 
Log Message:


Branch for Z3-ification of CMF interfaces

 - All interfaces declared in the CMF are now Zope3-style interfaces
   (the one remaining exception is to leave Zope2's
   'webdav.WriteLockInterface' declared by CMFCore.PortalContent and
   derivatives.).

TOOD

  - Clean up XXX'es noted during this pass.


=== Products/CMFCalendar/Event.py 1.24 => 1.24.4.1 ===
--- Products/CMFCalendar/Event.py:1.24	Wed Jun 15 10:17:37 2005
+++ Products/CMFCalendar/Event.py	Fri Jul 15 18:41:16 2005
@@ -20,6 +20,8 @@
 from Globals import InitializeClass
 import transaction
 
+from zope.interface import implements, implementedBy
+
 from Products.CMFCore.PortalContent import PortalContent
 from Products.CMFCore.utils import contributorsplitter
 from Products.CMFCore.utils import keywordsplitter
@@ -116,9 +118,9 @@
     security = ClassSecurityInfo()
     security.declareObjectProtected(View)
 
-    __implements__ = ( PortalContent.__implements__
-                     , DefaultDublinCoreImpl.__implements__
-                     )
+    implements(implementedBy(PortalContent),
+               implementedBy(DefaultDublinCoreImpl),
+              )
 
     def __init__(self
                  , id



More information about the CMF-checkins mailing list