[CMF-checkins] SVN: CMF/branches/1.6/CMFCore/utils.py Make utils.ContentInit still honour the 'fti' argument in CMF 1.6.

Florent Guillaume fg at nuxeo.com
Mon Dec 12 15:00:57 EST 2005


Log message for revision 40752:
  Make utils.ContentInit still honour the 'fti' argument in CMF 1.6.
  This allows TypesTool.listDefaultTypeInformation, and thus
  TypesTool.manage_addTypeInformation, to work.
  

Changed:
  U   CMF/branches/1.6/CMFCore/utils.py

-=-
Modified: CMF/branches/1.6/CMFCore/utils.py
===================================================================
--- CMF/branches/1.6/CMFCore/utils.py	2005-12-12 19:30:50 UTC (rev 40751)
+++ CMF/branches/1.6/CMFCore/utils.py	2005-12-12 20:00:57 UTC (rev 40752)
@@ -652,11 +652,11 @@
                 , extra_constructors=()
                 , fti=()
                 ):
-        # BBB: fti argument is ignored
         self.meta_type = meta_type
         self.content_types = content_types
         self.permission = permission
         self.extra_constructors = extra_constructors
+        self.fti = fti
 
     def initialize(self, context):
         # Add only one meta type to the folder add list.
@@ -667,7 +667,9 @@
             # manage_addContentType() can then grab it.
             , constructors = ( manage_addContentForm
                                , manage_addContent
-                               , self ) + self.extra_constructors
+                               , self
+                               , ('factory_type_information', self.fti)
+                               ) + self.extra_constructors
             , permission = self.permission
             )
 



More information about the CMF-checkins mailing list