Commit 34511828 authored by Nicolas Delaby's avatar Nicolas Delaby

rename variable

replace hasattr by getattr

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@28864 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 0f3f745d
......@@ -53,10 +53,10 @@
</item>
<item>
<key> <string>_body</string> </key>
<value> <string>ob = state_change[\'object\']\n
<value> <string>document = state_change[\'object\']\n
# if file uploaded, then:\n
if hasattr(ob, \'clearConversionCache\'): # e.g. File doesn\'t have it\n
ob.clearConversionCache()\n
if getattr(document, \'clearConversionCache\', None) is not None: # e.g. File doesn\'t have it\n
document.clearConversionCache()\n
</string> </value>
</item>
<item>
......@@ -95,8 +95,9 @@ if hasattr(ob, \'clearConversionCache\'): # e.g. File doesn\'t have it\n
<tuple>
<string>state_change</string>
<string>_getitem_</string>
<string>ob</string>
<string>hasattr</string>
<string>document</string>
<string>getattr</string>
<string>None</string>
<string>_getattr_</string>
</tuple>
</value>
......
1018
\ No newline at end of file
1019
\ 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