[Erp5-report] r43212 nicolas.dumazet - /erp5/trunk/products/ERP5Type/Tool/ClassTool.py

nobody at svn.erp5.org nobody at svn.erp5.org
Wed Feb 9 09:02:20 CET 2011


Author: nicolas.dumazet
Date: Wed Feb  9 09:02:20 2011
New Revision: 43212

URL: http://svn.erp5.org?rev=43212&view=rev
Log:
Class Tool is very particular in the sense that it has different portal types
depending on allowClassTool() value.

I have no immediate easy solution for this tool for now: disable indexing it
to avoid activity loops when trying to call isResourceType or other indexing
guards against this tool that has no accessors.

Modified:
    erp5/trunk/products/ERP5Type/Tool/ClassTool.py

Modified: erp5/trunk/products/ERP5Type/Tool/ClassTool.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Type/Tool/ClassTool.py?rev=43212&r1=43211&r2=43212&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Type/Tool/ClassTool.py [utf8] (original)
+++ erp5/trunk/products/ERP5Type/Tool/ClassTool.py [utf8] Wed Feb  9 09:02:20 2011
@@ -255,6 +255,7 @@ if allowClassTool():
       id = 'portal_classes'
       meta_type = 'ERP5 Class Tool'
       portal_type = 'Class Tool'
+      isIndexable = False
 
       # Declarative Security
       security = ClassSecurityInfo()
@@ -1261,6 +1262,7 @@ else:
       id = 'portal_classes'
       meta_type = 'ERP5 Dummy Class Tool'
       portal_type = 'Dummy Class Tool'
+      isIndexable = False
 
       # Declarative Security
       security = ClassSecurityInfo()



More information about the Erp5-report mailing list