Commit 4cdbff10 authored by Gabriel Monnerat's avatar Gabriel Monnerat

don't need load preference to anonymous user

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@42317 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 88e56565
......@@ -52,6 +52,8 @@
<key> <string>_body</string> </key>
<value> <string>from Products.ERP5Type.JSONEncoder import encodeInJson as dumps\n
\n
if context.portal_membership.isAnonymousUser():\n
print None\n
portal_preferences = context.portal_preferences\n
print dumps(dict(preference=portal_preferences.getActivePreference().getRelativeUrl(), \n
system_preference=portal_preferences.getActiveSystemPreference().getRelativeUrl()))\n
......@@ -59,73 +61,14 @@ print dumps(dict(preference=portal_preferences.getActivePreference().getRelative
return printed\n
</string> </value>
</item>
<item>
<key> <string>_code</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>_params</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>errors</string> </key>
<value>
<tuple/>
</value>
</item>
<item>
<key> <string>func_code</string> </key>
<value>
<object>
<klass>
<global name="FuncCode" module="Shared.DC.Scripts.Signature"/>
</klass>
<tuple/>
<state>
<dictionary>
<item>
<key> <string>co_argcount</string> </key>
<value> <int>0</int> </value>
</item>
<item>
<key> <string>co_varnames</string> </key>
<value>
<tuple>
<string>_print_</string>
<string>_print</string>
<string>Products.ERP5Type.JSONEncoder</string>
<string>encodeInJson</string>
<string>dumps</string>
<string>_getattr_</string>
<string>context</string>
<string>portal_preferences</string>
<string>dict</string>
</tuple>
</value>
</item>
</dictionary>
</state>
</object>
</value>
</item>
<item>
<key> <string>func_defaults</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>Base_getPreferencePathList</string> </value>
</item>
<item>
<key> <string>warnings</string> </key>
<value>
<tuple/>
</value>
</item>
</dictionary>
</pickle>
</record>
......
162
\ No newline at end of file
163
\ 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