Commit 0bc4f915 authored by Tristan Cavelier's avatar Tristan Cavelier Committed by Cédric Le Ninivin

SolverProcess: _p_changed = 1

parent 00efcaa3
...@@ -337,13 +337,17 @@ class SolverProcess(XMLObject, ActiveProcess): ...@@ -337,13 +337,17 @@ class SolverProcess(XMLObject, ActiveProcess):
# 'WOEL-DEV': ['Assignor'] # 'WOEL-DEV': ['Assignor']
self.log("TRISTAN delivery_value %r" % (delivery_value,)) self.log("TRISTAN delivery_value %r" % (delivery_value,))
changed = False
for group, local_role_list in delivery_value.__ac_local_roles__.items(): for group, local_role_list in delivery_value.__ac_local_roles__.items():
self.log("TRISTAN group, local_role_list %r" % ((group, local_role_list),)) self.log("TRISTAN group, local_role_list %r" % ((group, local_role_list),))
for role in ("Assignee", "Assignor", "Associate"): for role in ("Assignee", "Assignor", "Associate"):
if role in local_role_list: if role in local_role_list:
self.log("TRISTAN role in local_role_list %r" % (role,)) self.log("TRISTAN role in local_role_list %r" % (role,))
self.__ac_local_roles__.setdefault(group, ["Assignor"]) self.__ac_local_roles__.setdefault(group, ["Assignor"])
changed = True
break break
if changed:
self._p_changed = 1
#.updateLocalRolesOnDocument(self, **kw) #.updateLocalRolesOnDocument(self, **kw)
# may be need to have an interaction when _setDelivery* is called on solver process # may be need to have an interaction when _setDelivery* is called on solver process
......
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