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

Base.py: improve a condiction syntax.

parent b71f1b6f
......@@ -223,8 +223,7 @@ class WorkflowMethod(Method):
# a run-once transition, prevent it from running again in
# the same transaction
transactional_variable[once_transition_key] = 1
elif candidate_workflow.__class__.__name__ == 'DCWorkflowDefinition' or \
candidate_workflow.__class__.__name__ == 'Workflow':
elif candidate_workflow.__class__.__name__ in ['DCWorkflowDefinition', 'Workflow']:
raise UnsupportedWorkflowMethod(instance, wf_id, transition_id)
# XXX Keep the log for projects that needs to comment out
# the previous line.
......
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