--- a/hooks/workflow.py Fri Nov 20 19:35:54 2009 +0100
+++ b/hooks/workflow.py Fri Nov 20 19:56:35 2009 +0100
@@ -202,8 +202,8 @@
try:
treid = entity['by_transition']
except KeyError:
- # no transition set, check user is a manager and destination state is
- # specified (and valid)
+ # no transition set, check user is a manager and destination state
+ # is specified (and valid)
if not cowpowers:
msg = session._('mandatory relation')
raise ValidationError(entity.eid, {'by_transition': msg})
@@ -216,8 +216,8 @@
msg = session._("state doesn't belong to entity's workflow")
raise ValidationError(entity.eid, {'to_state': msg})
else:
- # check transition is valid and allowed, unless we're coming back from
- # subworkflow
+ # check transition is valid and allowed, unless we're coming back
+ # from subworkflow
tr = session.entity_from_eid(treid)
if swtr is None:
if tr is None: