Skip to content

Commit 3b53e86

Browse files
committed
Rename workflowitem to workflow_item in workflowgraphicsscene.
1 parent 62f1e81 commit 3b53e86

1 file changed

Lines changed: 12 additions & 12 deletions

File tree

src/mapclient/view/workflow/workflowgraphicsscene.py

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -87,27 +87,27 @@ def update_model(self):
8787
self.blockSignals(False)
8888
meta_steps = {}
8989
connections = []
90-
for workflowitem in list(self._workflow_scene.items()):
91-
if workflowitem.Type == MetaStep.Type:
92-
node = Node(workflowitem)
90+
for workflow_item in list(self._workflow_scene.items()):
91+
if workflow_item.Type == MetaStep.Type:
92+
node = Node(workflow_item)
9393
node.showStepName(self._showStepNames)
94-
workflowitem.getStep().registerConfiguredObserver(self.stepConfigured)
95-
workflowitem.getStep().registerDoneExecution(self.doneExecution)
96-
workflowitem.getStep().registerOnExecuteEntry(self.setCurrentWidget, self.setWidgetUndoRedoStack)
97-
workflowitem.getStep().registerIdentifierOccursCount(self.identifierOccursCount)
94+
workflow_item.getStep().registerConfiguredObserver(self.stepConfigured)
95+
workflow_item.getStep().registerDoneExecution(self.doneExecution)
96+
workflow_item.getStep().registerOnExecuteEntry(self.setCurrentWidget, self.setWidgetUndoRedoStack)
97+
workflow_item.getStep().registerIdentifierOccursCount(self.identifierOccursCount)
9898

9999
# Put the node into the scene straight away so that the items scene will
100100
# be valid when we set the position.
101101
QtWidgets.QGraphicsScene.addItem(self, node)
102102

103103
self.blockSignals(True)
104-
node.setPos(workflowitem.getPos())
105-
node.setSelected(workflowitem.getSelected())
104+
node.setPos(workflow_item.getPos())
105+
node.setSelected(workflow_item.getSelected())
106106
self.blockSignals(False)
107107

108-
meta_steps[workflowitem] = node
109-
elif workflowitem.Type == Connection.Type:
110-
connections.append(workflowitem)
108+
meta_steps[workflow_item] = node
109+
elif workflow_item.Type == Connection.Type:
110+
connections.append(workflow_item)
111111

112112
for connection in connections:
113113
src_port_item = meta_steps[connection.source()]._step_port_items[connection.sourceIndex()]

0 commit comments

Comments
 (0)