Commit c3fa3f2c authored by Sebastien Robin's avatar Sebastien Robin

we can store objects directly in transactional variable

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@38132 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 0f78c0f3
...@@ -252,10 +252,10 @@ class PreferenceTool(BaseTool): ...@@ -252,10 +252,10 @@ class PreferenceTool(BaseTool):
if x.getObject().getProperty('preference_state', 'broken') in ('enabled', 'global')] if x.getObject().getProperty('preference_state', 'broken') in ('enabled', 'global')]
sys_prefs.sort(key=lambda x: x.getPriority(), reverse=True) sys_prefs.sort(key=lambda x: x.getPriority(), reverse=True)
preference_list = sys_prefs + prefs preference_list = sys_prefs + prefs
tv[tv_key] = [x.getRelativeUrl() for x in preference_list] tv[tv_key] = preference_list
else: else:
portal = self.getPortalObject() portal = self.getPortalObject()
preference_list = [portal.restrictedTraverse(x) for x in tv[tv_key]] preference_list = tv[tv_key]
return preference_list return preference_list
def _getActivePreferenceByPortalType(self, portal_type): def _getActivePreferenceByPortalType(self, portal_type):
......
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