[CMF-checkins] CVS: Products/CMFDefault/Extensions - update_discussion.py:1.1.74.2

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


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

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

- Get rid of apply
- Behave accordingly with Zope 2.8


=== Products/CMFDefault/Extensions/update_discussion.py 1.1.74.1 => 1.1.74.2 ===
--- Products/CMFDefault/Extensions/update_discussion.py:1.1.74.1	Thu Apr 22 13:47:51 2004
+++ Products/CMFDefault/Extensions/update_discussion.py	Wed Mar 16 12:57:54 2005
@@ -34,10 +34,8 @@
     types_tool = self.portal_types
     if not getattr( types_tool, 'Discussion Item', None ):
 
-        fti = apply( FactoryTypeInformation
-                   , ()
-                   , DiscussionItem.factory_type_information[0]
-                   )
+        fti = FactoryTypeInformation(**DiscussionItem.factory_type_information[0])
+
         types_tool._setObject( 'Discussion Item', fti )
         a( 'Added type object for DiscussionItem' )
 



More information about the CMF-checkins mailing list