Commit b9d34601 authored by Fabien Morin's avatar Fabien Morin

use a custom variable 'anonymous_module' to know wich module the annonymous application belongs to

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@23586 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 93610793
...@@ -132,9 +132,8 @@ def getSecurityCategoryFromEntity(self, base_category_list, entity_name, ...@@ -132,9 +132,8 @@ def getSecurityCategoryFromEntity(self, base_category_list, entity_name,
# XXX this hack permit to get the module of the application # XXX this hack permit to get the module of the application
# the goal is to work with anonymous applications, even if they are # the goal is to work with anonymous applications, even if they are
# not reindexed # not reindexed
if len(self.REQUEST.steps) >= 3 and \ module_id = self.REQUEST.get('anonymous_module', None)
'module' in self.REQUEST.steps[-3]: if module_id:
module_id = self.REQUEST.steps[-3]
module = getattr(portal, module_id, None) module = getattr(portal, module_id, None)
if module is not None: if module is not None:
result = module._getOb(entity_name, None) result = module._getOb(entity_name, None)
......
291 292
\ No newline at end of file \ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment