release: 0.5.0

This commit is contained in:
Romain Dorgueil
2017-10-05 19:16:03 +02:00
parent ee65cd736b
commit 32e222787d
7 changed files with 73 additions and 14 deletions

View File

@ -6,10 +6,12 @@ from bonobo.util.objects import get_name
OUTPUT_GRAPHVIZ = 'graphviz'
def _ident(graph, i):
escaped_index = str(i)
escaped_name = json.dumps(get_name(graph[i]))
return '{{{} [label={}]}}'.format(escaped_index,escaped_name)
escaped_index = str(i)
escaped_name = json.dumps(get_name(graph[i]))
return '{{{} [label={}]}}'.format(escaped_index, escaped_name)
def execute(*, output, **kwargs):
graph, plugins, services = read(**kwargs)
@ -20,7 +22,7 @@ def execute(*, output, **kwargs):
print(' "BEGIN" [shape="point"];')
for i in graph.outputs_of(BEGIN):
print(' "BEGIN" -> ' + _ident(graph, i) + ';')
print(' "BEGIN" -> ' + _ident(graph, i) + ';')
for ix in graph.topologically_sorted_indexes:
for iy in graph.outputs_of(ix):