Commit cb2b121f authored by Ivan Tyagov's avatar Ivan Tyagov

Add more portal type which are able to produce an image output (i.e. thumbnail).

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@43528 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent faf2ad81
...@@ -67,7 +67,8 @@ portal_type = context.getPortalType()\n ...@@ -67,7 +67,8 @@ portal_type = context.getPortalType()\n
if portal_type in (\'Drawing\', \'Image\', \'PDF\', \'Presentation\', \'Spreadsheet\', \'Text\', \'Web Page\'):\n if portal_type in (\'Drawing\', \'Image\', \'PDF\', \'Presentation\', \'Spreadsheet\', \'Text\', \'Web Page\'):\n
return context.absolute_url()\n return context.absolute_url()\n
\n \n
if portal_type in (\'Person\',) and context.getDefaultImageAbsoluteUrl() is not None:\n if portal_type in (\'Person\', \'Organisation\', \'Credential Update\', \\\n
\'Component\', \'Product\',) and context.getDefaultImageAbsoluteUrl() is not None:\n
return context.getDefaultImageAbsoluteUrl()\n return context.getDefaultImageAbsoluteUrl()\n
\n \n
return None\n return None\n
......
40895 40896
\ 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