Commit 78fe1012 authored by Nicolas Delaby's avatar Nicolas Delaby

use portal_type parameter in query

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@26061 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 1486d48b
...@@ -97,7 +97,7 @@ elif same_type(to_url, \'\'):\n ...@@ -97,7 +97,7 @@ elif same_type(to_url, \'\'):\n
if attachment_list is None:\n if attachment_list is None:\n
attachment_list = []\n attachment_list = []\n
document_type_list = context.getPortalDocumentTypeList()\n document_type_list = context.getPortalDocumentTypeList()\n
for attachment in context.getAggregateValueList():\n for attachment in context.getAggregateValueList(portal_type=document_type_list):\n
mime_type, content = attachment.getMimeTypeAndContent()\n mime_type, content = attachment.getMimeTypeAndContent()\n
name = attachment.getReference()\n name = attachment.getReference()\n
\n \n
......
554 556
\ 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