[Erp5-report] r23539 - in /erp5/trunk/bt5/erp5_forge: WorkflowTemplateItem/portal_workflow/...

nobody at svn.erp5.org nobody at svn.erp5.org
Wed Sep 10 11:53:00 CEST 2008


Author: nicolas
Date: Wed Sep 10 11:52:53 2008
New Revision: 23539

URL: http://svn.erp5.org?rev=23539&view=rev
Log:
Display Emmbed File in Bug Digest

Modified:
    erp5/trunk/bt5/erp5_forge/WorkflowTemplateItem/portal_workflow/bug_event_workflow/scripts/BugEvent_sendNotification.xml
    erp5/trunk/bt5/erp5_forge/bt/revision

Modified: erp5/trunk/bt5/erp5_forge/WorkflowTemplateItem/portal_workflow/bug_event_workflow/scripts/BugEvent_sendNotification.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_forge/WorkflowTemplateItem/portal_workflow/bug_event_workflow/scripts/BugEvent_sendNotification.xml?rev=23539&r1=23538&r2=23539&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_forge/WorkflowTemplateItem/portal_workflow/bug_event_workflow/scripts/BugEvent_sendNotification.xml (original)
+++ erp5/trunk/bt5/erp5_forge/WorkflowTemplateItem/portal_workflow/bug_event_workflow/scripts/BugEvent_sendNotification.xml Wed Sep 10 11:52:53 2008
@@ -99,6 +99,14 @@
 \n
 """ % (bug.getDescription(\'\'))\n
 \n
+attachment_list = bug.Base_getRelatedDocumentList(\n
+                          portal_type=bug.getPortalDocumentTypeList())\n
+if attachment_list:\n
+  body += """Attachments:\n
+\n
+  %s\n
+\n
+""" % (\'\\n  \'.join([\'%s %s\' % (a.getTitle(), a.absolute_url()) for a in attachment_list]))\n
 body += """ Messages :\n
 """\n
 # Messages Information\n
@@ -174,12 +182,16 @@
                             <string>body</string>
                             <string>None</string>
                             <string>_inplacevar_</string>
+                            <string>attachment_list</string>
+                            <string>append</string>
+                            <string>$append0</string>
+                            <string>_getiter_</string>
+                            <string>a</string>
                             <string>simulation_state</string>
                             <string>bug_message_list</string>
                             <string>lines_list</string>
                             <string>len</string>
                             <string>message_count</string>
-                            <string>_getiter_</string>
                             <string>message</string>
                             <string>content_type</string>
                             <string>text</string>

Modified: erp5/trunk/bt5/erp5_forge/bt/revision
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_forge/bt/revision?rev=23539&r1=23538&r2=23539&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_forge/bt/revision (original)
+++ erp5/trunk/bt5/erp5_forge/bt/revision Wed Sep 10 11:52:53 2008
@@ -1,1 +1,1 @@
-368
+369




More information about the Erp5-report mailing list