[CMF-checkins] CVS: Products/CMFCore - utils.py:1.21 SkinsContainer.py:1.4
Tres Seaver
tseaver@zope.com
Thu, 29 Nov 2001 16:48:00 -0500
Update of /cvs-repository/Products/CMFCore
In directory cvs.zope.org:/tmp/cvs-serv2316
Modified Files:
utils.py SkinsContainer.py
Log Message:
- Complete class initialization (tracker #341)
=== Products/CMFCore/utils.py 1.20 => 1.21 ===
+Globals.InitializeClass( ToolInit )
+
def manage_addToolForm(self, REQUEST):
'''
Shows the add tool form.
@@ -335,6 +337,8 @@
for ct in self.content_types:
ct.__factory_meta_type__ = self.meta_type
+Globals.InitializeClass( ContentInit )
+
def manage_addContentForm(self, REQUEST):
'''
Shows the add content type form.
@@ -406,6 +410,8 @@
return p.get('label', id)
return id
+
+Globals.InitializeClass( SimpleItemWithProperties )
import OFS
=== Products/CMFCore/SkinsContainer.py 1.3 => 1.4 ===
from Acquisition import aq_base
from AccessControl import ClassSecurityInfo
+from Globals import InitializeClass
class SkinPathError (Exception):
'Invalid skin path'
@@ -108,3 +109,5 @@
skinob = self.getSkinByPath('')
return skinob
+
+InitializeClass( SkinsContainer )