Revision 74517ac1
Modification du template de la page d'accueil de Vigiboard.
git-svn-id: https://vigilo-dev.si.c-s.fr/svn@2165 b22e2e97-25c9-44ff-b637-2e5ceca36478
vigiboard/controllers/root.py | ||
---|---|---|
57 | 57 |
@validate(validators={ |
58 | 58 |
'page': validators.Int(min=1), |
59 | 59 |
}, error_handler=process_form_errors) |
60 |
@expose('vigiboard_event_table.html')
|
|
60 |
@expose('event_table.html') |
|
61 | 61 |
@require(Any(not_anonymous(), msg=l_("You need to be authenticated"))) |
62 | 62 |
def default(self, page=1, hostgroup=None, servicegroup=None, |
63 | 63 |
host=None, service=None, output=None, trouble_ticket=None, |
... | ... | |
255 | 255 |
}, |
256 | 256 |
nb_pages = nb_pages, |
257 | 257 |
page = page, |
258 |
history = history_entries, |
|
259 | 258 |
search = { |
260 | 259 |
'host': '', |
261 | 260 |
'service': '', |
... | ... | |
347 | 346 |
'page': validators.Int(min=1), |
348 | 347 |
}, |
349 | 348 |
error_handler = process_form_errors) |
350 |
@expose('vigiboard_event_table.html')
|
|
349 |
@expose('event_table.html') |
|
351 | 350 |
@require(Any(not_anonymous(), msg=l_("You need to be authenticated"))) |
352 | 351 |
def item(self, host, service=None, page=1): |
353 | 352 |
""" |
vigiboard/controllers/vigiboardrequest.py | ||
---|---|---|
358 | 358 |
from vigiboard.controllers.root import get_last_modification_timestamp |
359 | 359 |
|
360 | 360 |
# Si les objets manipulés sont des Event, on a facilement les idevent. |
361 |
if isinstance(data[0], Event):
|
|
361 |
if isinstance(self.events[0][0], Event):
|
|
362 | 362 |
ids = [data[0].idevent for data in self.events] |
363 | 363 |
# Sinon, il s'agit de CorrEvent(s) dont on récupère l'idcause. |
364 | 364 |
else: |
Also available in: Unified diff