Commit 9c7ec06f authored by Aurel's avatar Aurel

System Preferences must outranks Preferences

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@21127 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent e0d33b9a
No related merge requests found
...@@ -232,7 +232,7 @@ class PreferenceTool(BaseTool): ...@@ -232,7 +232,7 @@ class PreferenceTool(BaseTool):
# add system preferences after user preferences # add system preferences after user preferences
sys_prefs = [x.getObject() for x in self.searchFolder(portal_type='System Preference', **kw)] sys_prefs = [x.getObject() for x in self.searchFolder(portal_type='System Preference', **kw)]
sys_prefs.sort(lambda b, a: cmp(a.getPriority(), b.getPriority())) sys_prefs.sort(lambda b, a: cmp(a.getPriority(), b.getPriority()))
return prefs + sys_prefs return sys_prefs + prefs
security.declareProtected(Permissions.View, 'getActivePreference') security.declareProtected(Permissions.View, 'getActivePreference')
def getActivePreference(self) : def getActivePreference(self) :
......
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