Commit 4e9400f5 authored by Ivan Tyagov's avatar Ivan Tyagov

"Embedded File" portal type is "embedded_document".

Use proper API.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@42044 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent e5ca8e13
...@@ -53,6 +53,7 @@ ...@@ -53,6 +53,7 @@
<key> <string>group_list</string> </key> <key> <string>group_list</string> </key>
<value> <value>
<tuple> <tuple>
<string>embedded_document</string>
<string>file_document</string> <string>file_document</string>
<string>my_document</string> <string>my_document</string>
</tuple> </tuple>
......
...@@ -95,7 +95,7 @@ elif same_type(to_url, \'\'):\n ...@@ -95,7 +95,7 @@ elif same_type(to_url, \'\'):\n
# Attachments\n # Attachments\n
if attachment_list is None:\n if attachment_list is None:\n
attachment_list = []\n attachment_list = []\n
document_type_list = [\'Embedded File\'] + list(context.getPortalDocumentTypeList())\n document_type_list = list(context.getPortalEmbeddedDocumentTypeList()) + list(context.getPortalDocumentTypeList())\n
for attachment in context.getAggregateValueList(portal_type=document_type_list):\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.getFilename()\n name = attachment.getFilename()\n
......
932 933
\ 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