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
if portal_type in (\'Drawing\', \'Image\', \'PDF\', \'Presentation\', \'Spreadsheet\', \'Text\', \'Web Page\'):\n
return context.absolute_url()\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
\n
return None\n
......
40895
\ No newline at end of file
40896
\ 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