Commit a6f4e603 authored by wenjie.zheng's avatar wenjie.zheng

Transition.py: fix transition guard generation and update function.

parent 7fa633de
......@@ -99,12 +99,11 @@ class Transition(IdAsReferenceMixin("transition_", "prefix"), XMLObject):
roles=self.getRoleList(),
groups=self.getGroupList(),
expr=self.getExpression())
else:
if self.guard.roles != self.getRoleList():
self.guard.roles = self.getRoleList()
if self.guard.permissions != self.getPermissionList():
self.guard.permissions = self.getPermissionList()
if self.guard.groups != self.getGroupList():
self.guard.groups = self.getGroupList()
if self.guard.expr != self.getExpression():
self.guard.expr = self.getExpression()
if self.guard.roles != self.getRoleList():
self.guard.roles = self.getRoleList()
if self.guard.permissions != self.getPermissionList():
self.guard.permissions = self.getPermissionList()
if self.guard.groups != self.getGroupList():
self.guard.groups = self.getGroupList()
if self.guard.expr != self.getExpression():
self.guard.expr = self.getExpression()
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