[Erp5-report] r38644 nicolas.dumazet - /erp5/trunk/products/ERP5/ERP5Site.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Sun Sep 26 01:25:37 CEST 2010
Author: nicolas.dumazet
Date: Sun Sep 26 01:25:37 2010
New Revision: 38644
URL: http://svn.erp5.org?rev=38644&view=rev
Log:
we don't use opaque objects, and this method causes problems as it
tries to load portal subobjects too early.
Modified:
erp5/trunk/products/ERP5/ERP5Site.py
Modified: erp5/trunk/products/ERP5/ERP5Site.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/ERP5Site.py?rev=38644&r1=38643&r2=38644&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/ERP5Site.py [utf8] (original)
+++ erp5/trunk/products/ERP5/ERP5Site.py [utf8] Sun Sep 26 01:25:37 2010
@@ -353,6 +353,12 @@ class ERP5Site(FolderMixIn, CMFSite):
security.declareProtected(Permissions.AccessContentsInformation, 'getPath')
getPath = getUrl
+ security.declareProtected(Permissions.AccessContentsInformation, 'opaqueValues')
+ def opaqueValues(self, *args, **kw):
+ # XXX nonsense of inheriting from CMFSite that calls __before_traversal__
+ # and tries to load subobjects of the portal too early
+ return []
+
security.declareProtected(Permissions.AccessContentsInformation, 'objectValues')
def objectValues(self, *args, **kw):
# When stepping in an ERP5Site from outside,
More information about the Erp5-report
mailing list