[Erp5-report] r14874 - /erp5/trunk/bt5/erp5_dms/SkinTemplateItem/portal_skins/erp5_dms/

nobody at svn.erp5.org nobody at svn.erp5.org
Tue Jun 19 13:54:19 CEST 2007


Author: ivan
Date: Tue Jun 19 13:54:18 2007
New Revision: 14874

URL: http://svn.erp5.org?rev=14874&view=rev
Log:
Fix typo. Allow passing an error message from caller script.

Modified:
    erp5/trunk/bt5/erp5_dms/SkinTemplateItem/portal_skins/erp5_dms/Document_notifyByEmail.xml

Modified: erp5/trunk/bt5/erp5_dms/SkinTemplateItem/portal_skins/erp5_dms/Document_notifyByEmail.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_dms/SkinTemplateItem/portal_skins/erp5_dms/Document_notifyByEmail.xml?rev=14874&r1=14873&r2=14874&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_dms/SkinTemplateItem/portal_skins/erp5_dms/Document_notifyByEmail.xml (original)
+++ erp5/trunk/bt5/erp5_dms/SkinTemplateItem/portal_skins/erp5_dms/Document_notifyByEmail.xml Tue Jun 19 13:54:18 2007
@@ -103,7 +103,7 @@
     consistency_result = [x for x in consistency_result if x[1] == \'DocumentCoordinatesConstraint inconsistency\']\n
     isObjectConsistent = len(consistency_result) == 0\n
   if not isObjectConsistent:\n
-    error_msg = \'<br/>\'.join(str(c[3]) for x in consistency_result)\n
+    error_msg = \'<br/>\'.join(str(x[3]) for x in consistency_result)\n
     subject_template =  \'[DMS] Failure ingestion %(name)s\'\n
     email_template = """Your document "%(name)s" was not successfuly ingested.\n
   \n
@@ -121,7 +121,7 @@
 click here: %(url)s/view to proceed with your work."""\n
 elif event in (\'ingestion_failure\',):\n
   # there was an error during ingestion process, inform user to try again\n
-  error_msg = \'Failure during ingestion.\'\n
+  error_msg = kw.get(\'message\', \'Failure during ingestion.\') \n
   subject_template =  \'[DMS] Unsuccessful ingestion\'\n
   email_template = """Your document was not successfuly ingested.\n
   \n




More information about the Erp5-report mailing list