Commit 303baacd authored by Rafael Monnerat's avatar Rafael Monnerat

Show the attachments that are storage inside Mail Message Data. Those...

Show the attachments that are storage inside Mail Message Data. Those attachements are usual when you ingest one mail into ERP5.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@26136 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 19d830b1
......@@ -44,9 +44,22 @@
display request/display|string:small;\n
format request/format|string:jpg;"> \n
<p tal:repeat="image_list python: here.Event_getAttachmentList()">\n
\n
<img src="" \n
tal:attributes="src string:${image_list/absolute_url}/index_html?display=${display}&format=${format}&frame=${frame}&resolution:int=200">\n
</p>\n
<tal:block tal:define="information_list here/getAttachmentInformationList | python:\n
[{\'To\': \'erp5-report@erp5.org\', \'uid\': \'part_0\', \'index\': 0}, \n
{\'index\': 2, \'uid\': \'part_2\', \'Content-Transfer-Encoding\': \'7bit\', \'MIME-Version\': \'1.0\'}, \n
{\'index\': 3, \'uid\': \'part_3\', \'Content-Disposition\': \'inline\', \'Content-Transfer-Encoding\': \'7bit\', \'MIME-Version\': \'1.0\'}]">\n
\n
<p tal:repeat="information information_list">\n
<tal:block tal:condition="python: information[\'content_type\'].split(\'/\')[0] == \'image\'" >\n
<img src="" tal:attributes="src python:\'getAttachmentData?index:int=%s\' % information[\'index\']"/>\n
</tal:block>\n
</p>\n
\n
</tal:block>\n
</div>
]]></string> </value>
......
359
\ No newline at end of file
360
\ 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