diff options
| author | Jenkins <jenkins@review.openstack.org> | 2013-07-10 04:48:35 +0000 |
|---|---|---|
| committer | Gerrit Code Review <review@openstack.org> | 2013-07-10 04:48:35 +0000 |
| commit | 9ffcbd676e67cdb8254395aa868aa1c26255b78b (patch) | |
| tree | cbd90ae19ea928b22ed3328f137d50bd9bb688b9 /taskflow/patterns/graph_flow.py | |
| parent | 3e24dc3224e991cfeae144776aa6e5810c843a75 (diff) | |
| parent | b0beb0728154b76eaf132756876d5942e49fb1bd (diff) | |
| download | taskflow-9ffcbd676e67cdb8254395aa868aa1c26255b78b.tar.gz | |
Merge "Unify creation/usage of uuids."
Diffstat (limited to 'taskflow/patterns/graph_flow.py')
| -rw-r--r-- | taskflow/patterns/graph_flow.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/taskflow/patterns/graph_flow.py b/taskflow/patterns/graph_flow.py index 824545a..1dbf037 100644 --- a/taskflow/patterns/graph_flow.py +++ b/taskflow/patterns/graph_flow.py @@ -36,8 +36,8 @@ class Flow(linear_flow.Flow): a linear topological ordering (and reverse using the same linear topological order)""" - def __init__(self, name, parents=None): - super(Flow, self).__init__(name, parents) + def __init__(self, name, parents=None, uuid=None): + super(Flow, self).__init__(name, parents, uuid) self._graph = digraph.DiGraph() @decorators.locked @@ -58,8 +58,10 @@ class Flow(linear_flow.Flow): def __str__(self): lines = ["GraphFlow: %s" % (self.name)] + lines.append("%s" % (self.uuid)) lines.append("%s" % (self._graph.number_of_nodes())) lines.append("%s" % (self._graph.number_of_edges())) + lines.append("%s" % (len(self.parents))) lines.append("%s" % (self.state)) return "; ".join(lines) |
