Revision 693e96f1
Ajout du refresh dans la toolbar et correction CSS / W3C
git-svn-id: https://vigilo-dev.si.c-s.fr/svn@538 b22e2e97-25c9-44ff-b637-2e5ceca36478
vigiboard/controllers/vigiboardrequest.py | ||
---|---|---|
274 | 274 |
|
275 | 275 |
# Liste des éléments pour la tête du tableau |
276 | 276 |
|
277 |
lst_title = [['',{}], [_('Date')+ '<span style="font-weight:normal">' + _('<br />[Duration]') + '</span>', {'style':'text-align:left'}], ['#',{'title':_('Occurrence')}], [_('Host'),{'style':'text-align:left'}],
|
|
277 |
lst_title = [['',{}], [_('Date')+ '<span style="font-weight:normal">' + _('<br />[Duration]') + '</span>', {'style':'text-align:left'}], ['#',{'title':_('Nombre d\'occurrences')}], [_('Host'),{'style':'text-align:left'}],
|
|
278 | 278 |
[_('Service Type<br />Service Name'),{'style':'text-align:left'}], [_('Output'),{'style':'text-align:left'}]] |
279 | 279 |
lst_title.extend([[plug.name,plug.style] for plug in self.plugin]) |
280 | 280 |
lst_title.extend([[_('[TT]'),{'title':_('Trouble Ticket')}], ['',{}]]) |
... | ... | |
350 | 350 |
).filter(EventHistory.idevent.in_(self.idevents) |
351 | 351 |
).order_by(desc(EventHistory.timestamp) |
352 | 352 |
).order_by(desc(EventHistory.idhistory)) |
353 |
print history |
|
354 | 353 |
if history.count() == 0: |
355 |
self.hist = [] |
|
354 |
self.hist = {} |
|
355 |
for i in self.idevents: |
|
356 |
self.hist[i] = [] |
|
356 | 357 |
return |
357 | 358 |
hists = {} |
358 | 359 |
i = 0 |
Also available in: Unified diff