Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Gepetto
dashboard
Commits
31927c96
Commit
31927c96
authored
Jul 11, 2018
by
Guilhem Saurel
Browse files
graph: dependencies from_gepetto too
parent
0c242d3d
Pipeline
#927
passed with stages
in 45 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
rainboard/views.py
View file @
31927c96
...
...
@@ -114,7 +114,7 @@ def graph_svg(request):
print
(
'digraph { rankdir=RL;'
,
file
=
f
)
for
project
in
models
.
Project
.
objects
.
filter
(
from_gepetto
=
True
):
print
(
f
'{{I
{
project
.
pk
}
[label="
{
project
}
"];}}'
,
file
=
f
)
for
dep
in
models
.
Dependency
.
objects
.
all
(
):
for
dep
in
models
.
Dependency
.
objects
.
filter
(
project__from_gepetto
=
True
,
library__from_gepetto
=
True
):
print
(
f
'I
{
dep
.
project
.
pk
}
-> I
{
dep
.
library
.
pk
}
;'
,
file
=
f
)
print
(
'}'
,
file
=
f
)
svg
=
run
([
'dot'
,
'/tmp/graph'
,
'-Tsvg'
],
stdout
=
PIPE
).
stdout
.
decode
()
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment