[Erp5-report] r26136 - in /erp5/trunk/bt5/erp5_crm: SkinTemplateItem/portal_skins/erp5_crm/...

nobody at svn.erp5.org nobody at svn.erp5.org
Tue Mar 24 01:48:36 CET 2009


Author: rafael
Date: Tue Mar 24 01:48:34 2009
New Revision: 26136

URL: http://svn.erp5.org?rev=26136&view=rev
Log:
Show the attachments that are storage inside Mail Message Data. Those attachements are usual when you ingest one mail into ERP5.

Modified:
    erp5/trunk/bt5/erp5_crm/SkinTemplateItem/portal_skins/erp5_crm/Attachment_renderHTMLPreviewAsImage.xml
    erp5/trunk/bt5/erp5_crm/bt/revision

Modified: erp5/trunk/bt5/erp5_crm/SkinTemplateItem/portal_skins/erp5_crm/Attachment_renderHTMLPreviewAsImage.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_crm/SkinTemplateItem/portal_skins/erp5_crm/Attachment_renderHTMLPreviewAsImage.xml?rev=26136&r1=26135&r2=26136&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_crm/SkinTemplateItem/portal_skins/erp5_crm/Attachment_renderHTMLPreviewAsImage.xml [utf8] (original)
+++ erp5/trunk/bt5/erp5_crm/SkinTemplateItem/portal_skins/erp5_crm/Attachment_renderHTMLPreviewAsImage.xml [utf8] Tue Mar 24 01:48:34 2009
@@ -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 at 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>

Modified: erp5/trunk/bt5/erp5_crm/bt/revision
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_crm/bt/revision?rev=26136&r1=26135&r2=26136&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_crm/bt/revision [utf8] (original)
+++ erp5/trunk/bt5/erp5_crm/bt/revision [utf8] Tue Mar 24 01:48:34 2009
@@ -1,1 +1,1 @@
-359
+360




More information about the Erp5-report mailing list