Commit 67f8bdca authored by Lucas Carvalho's avatar Lucas Carvalho

- Make cache of persistent object is forbidden.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@29080 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent b066deb1
...@@ -55,13 +55,7 @@ ...@@ -55,13 +55,7 @@
<key> <string>_body</string> </key> <key> <string>_body</string> </key>
<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 return context.getPortalObject().ERP5Site_getAuthenticatedMemberPersonValue()\n
def getAuthenticatedMemberPersonValue():\n
return context.getPortalObject().ERP5Site_getAuthenticatedMemberPersonValue()\n
\n
getAuthenticatedMemberPersonValue = CachingMethod(getAuthenticatedMemberPersonValue,\n
id=script.getId())\n
return getAuthenticatedMemberPersonValue()\n
</string> </value> </string> </value>
</item> </item>
<item> <item>
...@@ -107,11 +101,8 @@ return getAuthenticatedMemberPersonValue()\n ...@@ -107,11 +101,8 @@ return getAuthenticatedMemberPersonValue()\n
<key> <string>co_varnames</string> </key> <key> <string>co_varnames</string> </key>
<value> <value>
<tuple> <tuple>
<string>Products.ERP5Type.Cache</string>
<string>CachingMethod</string>
<string>getAuthenticatedMemberPersonValue</string>
<string>_getattr_</string> <string>_getattr_</string>
<string>script</string> <string>context</string>
</tuple> </tuple>
</value> </value>
</item> </item>
......
228 229
\ 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