[Erp5-report] r31732 leonardo - /erp5/trunk/products/ERP5Type/Base.py

nobody at svn.erp5.org nobody at svn.erp5.org
Wed Jan 13 17:19:34 CET 2010


Author: leonardo
Date: Wed Jan 13 17:19:33 2010
New Revision: 31732

URL: http://svn.erp5.org?rev=31732&view=rev
Log:
Make sure public methods of TempBase are truly public on Zope 2.12

Modified:
    erp5/trunk/products/ERP5Type/Base.py

Modified: erp5/trunk/products/ERP5Type/Base.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Type/Base.py?rev=31732&r1=31731&r2=31732&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Type/Base.py [utf8] (original)
+++ erp5/trunk/products/ERP5Type/Base.py [utf8] Wed Jan 13 17:19:33 2010
@@ -3813,6 +3813,12 @@
 
   security.declarePublic('edit')
 
+# Persistence.Persistent is one of the superclasses of TempBase, and on Zope2.8
+# it's __class_init__ method is InitializeClass. This is not the case on
+# Zope2.12 which requires us to call InitializeClass manually, otherwise
+# allow_class(TempBase) in ERP5Type/Document/__init__.py will trample our
+# ClassSecurityInfo with one that doesn't declare our public methods
+InitializeClass(TempBase)
 
 def newTempDocumentationHelper(folder, id, REQUEST=None, **kw):
   o = TempDocumentationHelper(id)




More information about the Erp5-report mailing list