Commit bd847ef1 authored by Lucas Carvalho's avatar Lucas Carvalho

- removed double checking.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@29060 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 6c5071e9
...@@ -56,17 +56,12 @@ ...@@ -56,17 +56,12 @@
<value> <string># based on current Authenticated Member this script must return\n <value> <string># based on current Authenticated Member this script must return\n
# the Person object\n # the Person object\n
from Products.ERP5Type.Cache import CachingMethod\n from Products.ERP5Type.Cache import CachingMethod\n
\n def getAuthenticatedMemberPersonValue():\n
user_id = context.portal_membership.getAuthenticatedMember().getId()\n return context.getPortalObject().ERP5Site_getAuthenticatedMemberPersonValue()\n
if context.portal_membership.isAnonymousUser():\n
return None\n
\n
def getAuthenticatedMemberPersonValue(user_id):\n
return context.getPortalObject().ERP5Site_getAuthenticatedMemberPersonValue(user_name=user_id)\n
\n \n
getAuthenticatedMemberPersonValue = CachingMethod(getAuthenticatedMemberPersonValue,\n getAuthenticatedMemberPersonValue = CachingMethod(getAuthenticatedMemberPersonValue,\n
id=script.getId())\n id=script.getId())\n
return getAuthenticatedMemberPersonValue(user_id)\n return getAuthenticatedMemberPersonValue()\n
</string> </value> </string> </value>
</item> </item>
<item> <item>
...@@ -114,11 +109,8 @@ return getAuthenticatedMemberPersonValue(user_id)\n ...@@ -114,11 +109,8 @@ return getAuthenticatedMemberPersonValue(user_id)\n
<tuple> <tuple>
<string>Products.ERP5Type.Cache</string> <string>Products.ERP5Type.Cache</string>
<string>CachingMethod</string> <string>CachingMethod</string>
<string>_getattr_</string>
<string>context</string>
<string>user_id</string>
<string>None</string>
<string>getAuthenticatedMemberPersonValue</string> <string>getAuthenticatedMemberPersonValue</string>
<string>_getattr_</string>
<string>script</string> <string>script</string>
</tuple> </tuple>
</value> </value>
......
223 224
\ No newline at end of file \ 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