[Erp5-report] r25639 - /erp5/trunk/products/ERP5/Document/BusinessTemplate.py

nobody at svn.erp5.org nobody at svn.erp5.org
Fri Feb 20 15:22:36 CET 2009


Author: vincent
Date: Fri Feb 20 15:22:35 2009
New Revision: 25639

URL: http://svn.erp5.org?rev=25639&view=rev
Log:
Make error message upon missing workflow chain a bit more explicit and descriptive.

Modified:
    erp5/trunk/products/ERP5/Document/BusinessTemplate.py

Modified: erp5/trunk/products/ERP5/Document/BusinessTemplate.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/Document/BusinessTemplate.py?rev=25639&r1=25638&r2=25639&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/Document/BusinessTemplate.py [utf8] (original)
+++ erp5/trunk/products/ERP5/Document/BusinessTemplate.py [utf8] Fri Feb 20 15:22:35 2009
@@ -1479,7 +1479,8 @@
         else:
           self._objects[portal_type] = [workflow,]
       elif not self.is_bt_for_diff:
-        raise NotFound, 'portal type %s not found in workflow chain'\
+        raise NotFound, 'No workflow chain found for portal type %s. This '\
+                        'is probably a sign of a missing dependancy.'\
                                                     % portal_type
 
   # Function to generate XML Code Manually




More information about the Erp5-report mailing list