Commit 99f21467 authored by Sebastien Robin's avatar Sebastien Robin

the checker of workflows did not works for every workflows


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@336 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent bf985ab7
...@@ -727,7 +727,7 @@ class ERP5Conduit(XMLSyncUtilsMixin): ...@@ -727,7 +727,7 @@ class ERP5Conduit(XMLSyncUtilsMixin):
self.addNode(object=object,xml=subnode, force=1) self.addNode(object=object,xml=subnode, force=1)
# We should first edit the object # We should first edit the object
args = self.getFormatedArgs(args=args) args = self.getFormatedArgs(args=args)
LOG('newObject',0,"object.getpath: %s" % str(object.getPath())) LOG('newObject',0,"object.getphyspath: %s" % str(object.getPhysicalPath()))
LOG('newObject',0,"args: %s" % str(args)) LOG('newObject',0,"args: %s" % str(args))
# edit the object with a dictionnary of arguments, # edit the object with a dictionnary of arguments,
# like {"telephone_number":"02-5648"} # like {"telephone_number":"02-5648"}
...@@ -881,6 +881,7 @@ class ERP5Conduit(XMLSyncUtilsMixin): ...@@ -881,6 +881,7 @@ class ERP5Conduit(XMLSyncUtilsMixin):
Some checking in order to check if we should add the workfow or not Some checking in order to check if we should add the workfow or not
""" """
conflict_list = [] conflict_list = []
if status.has_key('action'):
action_name = status['action'] action_name = status['action']
authorized = 0 authorized = 0
authorized_actions = wf_tool.getActionsFor(object) authorized_actions = wf_tool.getActionsFor(object)
......
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