[CMF-checkins] CVS: Products/CMFCalendar/Extensions - Install.py:1.8.28.2

Sidnei da Silva sidnei at awkly.org
Wed Mar 16 12:58:23 EST 2005


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

Modified Files:
      Tag: CMF-1_4-branch
	Install.py 
Log Message:

- Get rid of apply
- Behave accordingly with Zope 2.8


=== Products/CMFCalendar/Extensions/Install.py 1.8.28.1 => 1.8.28.2 ===
--- Products/CMFCalendar/Extensions/Install.py:1.8.28.1	Thu Apr 22 13:47:43 2004
+++ Products/CMFCalendar/Extensions/Install.py	Wed Mar 16 12:57:52 2005
@@ -80,7 +80,7 @@
     # and configure it in the types tool if it doesn't already exist
     for t in Event.factory_type_information:
         if t['id'] not in typestool.objectIds():
-            cfm = apply(ContentFactoryMetadata, (), t)
+            cfm = ContentFactoryMetadata(**t)
             typestool._setObject(t['id'], cfm)
             out.write('Registered with the types tool\n')
         else:



More information about the CMF-checkins mailing list