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

nobody at svn.erp5.org nobody at svn.erp5.org
Mon Oct 30 12:58:46 CET 2006


Author: jerome
Date: Mon Oct 30 12:58:36 2006
New Revision: 11005

URL: http://svn.erp5.org?rev=11005&view=rev
Log:
raise if a portal type is not found in workflow chain.


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=11005&r1=11004&r2=11005&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/Document/BusinessTemplate.py (original)
+++ erp5/trunk/products/ERP5/Document/BusinessTemplate.py Mon Oct 30 12:58:36 2006
@@ -1312,7 +1312,8 @@
         else:
           self._objects[portal_type] = [workflow,]
       else:
-        LOG('BusinessTemplate build', 100, 'portal type %s not found in workflow chain' %(portal_type))
+        raise NotFound, 'portal type %s not found in workflow chain'\
+                                                    % portal_type
 
   # Function to generate XML Code Manually
   def generateXml(self, path=None):




More information about the Erp5-report mailing list