Commit f5ae9193 authored by Jérome Perrin's avatar Jérome Perrin

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
parent 61ac40c4
...@@ -1312,7 +1312,8 @@ class PortalTypeWorkflowChainTemplateItem(BaseTemplateItem): ...@@ -1312,7 +1312,8 @@ class PortalTypeWorkflowChainTemplateItem(BaseTemplateItem):
else: else:
self._objects[portal_type] = [workflow,] self._objects[portal_type] = [workflow,]
else: 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 # Function to generate XML Code Manually
def generateXml(self, path=None): def generateXml(self, path=None):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment