projets
/
auf_rh_dae.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a12ddd5
)
Ajout des styles pour organigrammes avec pygraphviz 0.36
author
Jean-Philippe Caissy
<jpcaissy@piji.ca>
Mon, 12 Mar 2012 15:14:52 +0000
(10:14 -0500)
committer
Jean-Philippe Caissy
<jpcaissy@piji.ca>
Mon, 12 Mar 2012 15:14:52 +0000
(10:14 -0500)
project/rh/graph.py
patch
|
blob
|
blame
|
history
diff --git
a/project/rh/graph.py
b/project/rh/graph.py
index
d0b72c2
..
bb17ee5
100644
(file)
--- a/
project/rh/graph.py
+++ b/
project/rh/graph.py
@@
-54,6
+54,10
@@
def organigramme_postes_cluster(cluster_filter, titre=u"Organigramme", cluster_t
# label=cluster_titre.encode('ascii', 'xmlcharrefreplace'),
# labeljust="l")
)
+ graph_service.graph_attr['style'] = 'filled'
+ graph_service.graph_attr['color'] = 'lightgrey'
+ graph_service.graph_attr['label'] = cluster_titre.encode('ascii', 'xmlcharrefreplace')
+ graph_service.graph_attr['labeljust'] = 'l'
for p in postes:
graph_service.add_node(p.id)