Commit 96e7968b authored by wenjie.zheng's avatar wenjie.zheng Committed by Sebastien Robin

ConfigurationWorkflow.py: fix wrong type name.

parent c8730007
...@@ -155,7 +155,7 @@ class ConfigurationWorkflow(XMLObject): ...@@ -155,7 +155,7 @@ class ConfigurationWorkflow(XMLObject):
transition_dict = {} transition_dict = {}
out.append('digraph "%s" {' % self.getTitle()) out.append('digraph "%s" {' % self.getTitle())
transition_with_init_state_list = [] transition_with_init_state_list = []
for state in self.contentValues(portal_type='State'): for state in self.contentValues(portal_type='Configuration State'):
out.append('%s [shape=box,label="%s",' \ out.append('%s [shape=box,label="%s",' \
'style="filled",fillcolor="#ffcc99"];' % \ 'style="filled",fillcolor="#ffcc99"];' % \
(state.getId(), state.getTitle())) (state.getId(), state.getTitle()))
...@@ -173,7 +173,7 @@ class ConfigurationWorkflow(XMLObject): ...@@ -173,7 +173,7 @@ class ConfigurationWorkflow(XMLObject):
transition_dict[key] = value transition_dict[key] = value
# iterate also on transitions, and add transitions with no initial state # iterate also on transitions, and add transitions with no initial state
for transition in self.contentValues(portal_type='Transition'): for transition in self.contentValues(portal_type='Configuration Transition'):
trans_id = transition.getId() trans_id = transition.getId()
if trans_id not in transition_with_init_state_list: if trans_id not in transition_with_init_state_list:
destination_state = transition.getDestinationValue() destination_state = transition.getDestinationValue()
......
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