Commit 874d120b authored by Jérome Perrin's avatar Jérome Perrin

declare getPreference public, because you don't need to view the preference tool to call it.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@15781 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 73c1afc9
......@@ -180,7 +180,7 @@ class PreferenceTool(BaseTool):
['Member', 'Auditor', 'Manager'])
BaseTool.inheritedAttribute('manage_afterAdd')(self, item, container)
security.declareProtected(Permissions.View, "getPreference")
security.declarePublic('getPreference')
def getPreference(self, pref_name, default=_marker) :
""" get the preference on the most appopriate Preference object. """
method = getattr(self, 'get%s' % convertToUpperCase(pref_name), None)
......
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