From f5ae9193bcbc616bb88c8ccdcbb98cd346c67fe4 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?J=C3=A9rome=20Perrin?= <jerome@nexedi.com>
Date: Mon, 30 Oct 2006 11:58:36 +0000
Subject: [PATCH] raise if a portal type is not found in workflow chain.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@11005 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 product/ERP5/Document/BusinessTemplate.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/product/ERP5/Document/BusinessTemplate.py b/product/ERP5/Document/BusinessTemplate.py
index 5b8a5333fb..40d7a47726 100644
--- a/product/ERP5/Document/BusinessTemplate.py
+++ b/product/ERP5/Document/BusinessTemplate.py
@@ -1312,7 +1312,8 @@ class PortalTypeWorkflowChainTemplateItem(BaseTemplateItem):
         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):
-- 
2.30.9