Commit 58ddbf18 authored by Fabien Morin's avatar Fabien Morin

display only File and Image portal_type in AttachmentView

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@24625 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 7d3839ef
...@@ -64,7 +64,7 @@ file_type_list = (\'Image\', \'File\')\n ...@@ -64,7 +64,7 @@ file_type_list = (\'Image\', \'File\')\n
sub_form_type_list = filter(lambda x: x not in file_type_list, type_list)\n sub_form_type_list = filter(lambda x: x not in file_type_list, type_list)\n
\n \n
# A simple solution: use title to group\n # A simple solution: use title to group\n
viewable_content_list = context.contentValues(portal_type=type_list, checked_permission=\'View\')\n viewable_content_list = context.contentValues(portal_type=file_type_list, checked_permission=\'View\')\n
content_group_dict = {}\n content_group_dict = {}\n
for content in viewable_content_list:\n for content in viewable_content_list:\n
title = content.getTitle()\n title = content.getTitle()\n
......
453 454
\ 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