[Erp5-report] r23978 - in /erp5/trunk/bt5/erp5_base: SkinTemplateItem/portal_skins/erp5_bas...
nobody at svn.erp5.org
nobody at svn.erp5.org
Thu Oct 2 15:51:52 CEST 2008
Author: romain
Date: Thu Oct 2 15:51:44 2008
New Revision: 23978
URL: http://svn.erp5.org?rev=23978&view=rev
Log:
Allow to embed image in HTML by setting the relative URL of the image with FCKeditor
Modified:
erp5/trunk/bt5/erp5_base/SkinTemplateItem/portal_skins/erp5_base/Event_send.xml
erp5/trunk/bt5/erp5_base/bt/revision
Modified: erp5/trunk/bt5/erp5_base/SkinTemplateItem/portal_skins/erp5_base/Event_send.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_base/SkinTemplateItem/portal_skins/erp5_base/Event_send.xml?rev=23978&r1=23977&r2=23978&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_base/SkinTemplateItem/portal_skins/erp5_base/Event_send.xml (original)
+++ erp5/trunk/bt5/erp5_base/SkinTemplateItem/portal_skins/erp5_base/Event_send.xml Thu Oct 2 15:51:44 2008
@@ -104,6 +104,10 @@
attachment_list.append({\'mime_type\':mime_type,\n
\'content\':content,\n
\'name\':name})\n
+\n
+ # Allow to embed image in HTML by setting the relative URL of the image with FCKeditor\n
+ attachment_url = attachment.getRelativeUrl()\n
+ body = body.replace(\'src="%s"\' % attachment_url, \'src="cid:%s"\' % \'\'.join([\'%s\' % ord(i) for i in name]))\n
\n
# Build message per destination\n
mail_message = None\n
@@ -206,6 +210,11 @@
<string>mime_type</string>
<string>content</string>
<string>name</string>
+ <string>attachment_url</string>
+ <string>append</string>
+ <string>$append0</string>
+ <string>i</string>
+ <string>ord</string>
<string>mail_message</string>
<string>mail_template</string>
<string>multipart</string>
Modified: erp5/trunk/bt5/erp5_base/bt/revision
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_base/bt/revision?rev=23978&r1=23977&r2=23978&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_base/bt/revision (original)
+++ erp5/trunk/bt5/erp5_base/bt/revision Thu Oct 2 15:51:44 2008
@@ -1,1 +1,1 @@
-437
+439
More information about the Erp5-report
mailing list