Commit c29d7250 authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

* enable thumbnail only if available.

* remove log in Base_getThumbnailAbsoluteUrl.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@29340 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent e62b4fb0
......@@ -66,7 +66,6 @@
in relation with metadata discovery, within an activity)\n
"""\n
portal_type = context.getPortalType()\n
context.log(context.getPath(), portal_type)\n
\n
if portal_type in (\'Image\', \'Presentation\', \'Drawing\', \'Spreadsheet\', \'Text\', \'PDF\', ):\n
return context.absolute_url()\n
......
......@@ -311,7 +311,7 @@
<dictionary>
<item>
<key> <string>_text</string> </key>
<value> <string>python:getattr(cell, \'Base_getThumbnailAbsoluteUrl\', None) and cell.Base_getThumbnailAbsoluteUrl() or None</string> </value>
<value> <string>python:getattr(cell, \'Base_getThumbnailAbsoluteUrl\', lambda:None)()</string> </value>
</item>
</dictionary>
</pickle>
......@@ -327,7 +327,7 @@
<dictionary>
<item>
<key> <string>_text</string> </key>
<value> <string>python: getattr(cell, \'Base_getThumbnailAbsoluteUrl\', None) and True or False</string> </value>
<value> <string>python:getattr(cell, \'Base_getThumbnailAbsoluteUrl\', lambda:None)()</string> </value>
</item>
</dictionary>
</pickle>
......
1318
\ No newline at end of file
1319
\ 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