[CMF-checkins] CVS: CMF - DynamicType.py:1.4.2.1

tseaver@digicool.com tseaver@digicool.com
Tue, 3 Apr 2001 21:57:20 -0400 (EDT)


Update of /cvs-repository/CMF/CMFCore
In directory korak:/tmp/cvs-serv15507/CMFCore

Modified Files:
      Tag: CMF-1_0-branch
	DynamicType.py 
Log Message:


 - Allow 'portal_type' to be a method, as well as an attribute
    (eases ZClass-as-content).



--- Updated File DynamicType.py in package CMF --
--- DynamicType.py	2001/03/02 20:05:22	1.4
+++ DynamicType.py	2001/04/04 01:57:19	1.4.2.1
@@ -114,6 +114,8 @@
         if pt is None:
             # Provide a fallback.
             pt = self.meta_type
+        if callable( pt ):
+            pt = pt()
         return pt
 
     security.declarePublic('getTypeInfo')