Revision 47acbffb
Correction des tests unitaires.
Mise à jour des traductions.
Quelques corrections mineures.
git-svn-id: https://vigilo-dev.si.c-s.fr/svn@1090 b22e2e97-25c9-44ff-b637-2e5ceca36478
vigiboard/controllers/vigiboard_plugin/shn.py | ||
---|---|---|
31 | 31 |
dico = { |
32 | 32 |
'baseurl': url('/'), |
33 | 33 |
'idaggregate': aggregate.idaggregate, |
34 |
'impacted_hls': len(aggregate.high_level_services),
|
|
34 |
'impacted_hls': aggregate.high_level_services.count(),
|
|
35 | 35 |
} |
36 | 36 |
# XXX Il faudrait échapper l'URL contenue dans baseurl |
37 | 37 |
# pour éviter des attaques de type XSS. |
... | ... | |
59 | 59 |
.filter(EventsAggregate.idaggregate == idaggregate).one() |
60 | 60 |
shns = aggregate.high_level_services |
61 | 61 |
|
62 |
return dict(shns=[shn.servicename for shn in shns])
|
|
62 |
return dict(shns=[shn.name for shn in shns]) |
|
63 | 63 |
|
Also available in: Unified diff