[Erp5-report] r19245 - in /erp5/trunk/products/ERP5Type: ./ patches/
nobody at svn.erp5.org
nobody at svn.erp5.org
Mon Feb 11 16:45:52 CET 2008
Author: vincent
Date: Mon Feb 11 16:45:51 2008
New Revision: 19245
URL: http://svn.erp5.org?rev=19245&view=rev
Log:
New monkeypatch: make "manage_main" work on portal_type's subobjects.
Added:
erp5/trunk/products/ERP5Type/patches/CMFCoreTypesTool.py
Modified:
erp5/trunk/products/ERP5Type/ZopePatch.py
Modified: erp5/trunk/products/ERP5Type/ZopePatch.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Type/ZopePatch.py?rev=19245&r1=19244&r2=19245&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Type/ZopePatch.py (original)
+++ erp5/trunk/products/ERP5Type/ZopePatch.py Mon Feb 11 16:45:51 2008
@@ -56,6 +56,7 @@
from Products.ERP5Type.patches import PythonScript
from Products.ERP5Type.patches import MailTemplates
from Products.ERP5Type.patches import persistent_patch
+from Products.ERP5Type.patches import CMFCoreTypesTool
# for python2.3 compatibility
import threading
Added: erp5/trunk/products/ERP5Type/patches/CMFCoreTypesTool.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Type/patches/CMFCoreTypesTool.py?rev=19245&view=auto
==============================================================================
--- erp5/trunk/products/ERP5Type/patches/CMFCoreTypesTool.py (added)
+++ erp5/trunk/products/ERP5Type/patches/CMFCoreTypesTool.py Mon Feb 11 16:45:51 2008
@@ -1,0 +1,12 @@
+from Products.CMFCore.TypesTool import TypeInformation
+from zLOG import LOG, INFO
+
+if getattr(TypeInformation, 'manage_main', None) is not None:
+ LOG('ERP5Type/patches/CMFCoreTypesTool.py', INFO, 'This patch is no longer needed. Skipping.')
+elif None in (getattr(TypeInformation, 'manage_propertiesForm__roles__', None),
+ getattr(TypeInformation, 'manage_propertiesForm', None):
+ LOG('ERP5Type/patches/CMFCoreTypesTool.py', INFO, 'manage_propertiesForm not found. Skipping.')
+ else:
+ TypeInformation.manage_main__roles__ = TypeInformation.manage_propertiesForm__roles__
+ TypeInformation.manage_main = TypeInformation.manage_propertiesForm
+
More information about the Erp5-report
mailing list