[CMF-checkins] CVS: CMF - DynamicType.py:1.5
tseaver@digicool.com
tseaver@digicool.com
Tue, 3 Apr 2001 21:58:55 -0400 (EDT)
Update of /cvs-repository/CMF/CMFCore
In directory korak:/tmp/cvs-serv15737/CMFCore
Modified Files:
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:58:53 1.5
@@ -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')