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 @@ ...@@ -53,10 +53,10 @@
</item> </item>
<item> <item>
<key> <string>_body</string> </key> <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 file uploaded, then:\n
if hasattr(ob, \'clearConversionCache\'): # e.g. File doesn\'t have it\n if getattr(document, \'clearConversionCache\', None) is not None: # e.g. File doesn\'t have it\n
ob.clearConversionCache()\n document.clearConversionCache()\n
</string> </value> </string> </value>
</item> </item>
<item> <item>
...@@ -95,8 +95,9 @@ if hasattr(ob, \'clearConversionCache\'): # e.g. File doesn\'t have it\n ...@@ -95,8 +95,9 @@ if hasattr(ob, \'clearConversionCache\'): # e.g. File doesn\'t have it\n
<tuple> <tuple>
<string>state_change</string> <string>state_change</string>
<string>_getitem_</string> <string>_getitem_</string>
<string>ob</string> <string>document</string>
<string>hasattr</string> <string>getattr</string>
<string>None</string>
<string>_getattr_</string> <string>_getattr_</string>
</tuple> </tuple>
</value> </value>
......
1018 1019
\ 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