Commit 556b32d3 authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

call hasFile() only if it exists.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@26480 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 2823a35c
......@@ -307,7 +307,7 @@
<dictionary>
<item>
<key> <string>_text</string> </key>
<value> <string>python:(here.hasFile() and \'page\') or \'\'</string> </value>
<value> <string>python:(getattr(here, \'hasFile\', None) is not None and here.hasFile() and \'page\') or \'\'</string> </value>
</item>
</dictionary>
</pickle>
......@@ -339,7 +339,7 @@
<dictionary>
<item>
<key> <string>_text</string> </key>
<value> <string>not:here/hasFile</string> </value>
<value> <string>python:getattr(here, \'hasFile\', None) is not None and not here.hasFile()</string> </value>
</item>
</dictionary>
</pickle>
......
1160
\ No newline at end of file
1161
\ 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