[Erp5-report] r44667 aurel - /erp5/trunk/products/ERP5Form/PreferenceTool.py

nobody at svn.erp5.org nobody at svn.erp5.org
Mon Mar 28 15:14:59 CEST 2011


Author: aurel
Date: Mon Mar 28 15:14:59 2011
New Revision: 44667

URL: http://svn.erp5.org?rev=44667&view=rev
Log:
self.REQUEST does not always exists, and the call method does not use
it at all, use None instead

Modified:
    erp5/trunk/products/ERP5Form/PreferenceTool.py

Modified: erp5/trunk/products/ERP5Form/PreferenceTool.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Form/PreferenceTool.py?rev=44667&r1=44666&r2=44667&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Form/PreferenceTool.py [utf8] (original)
+++ erp5/trunk/products/ERP5Form/PreferenceTool.py [utf8] Mon Mar 28 15:14:59 2011
@@ -154,7 +154,7 @@ class PreferenceTool(BaseTool):
       # preferences.
       actual_user = acl_users.getUser(str(user))
       if actual_user is not None:
-        newSecurityManager(self.REQUEST, actual_user.__of__(acl_users))
+        newSecurityManager(None, actual_user.__of__(acl_users))
       tv_key = 'PreferenceTool._getSortedPreferenceList/%s/%s' % (user,
                                                                   sql_catalog_id)
       if tv.get(tv_key, None) is None:



More information about the Erp5-report mailing list