Revision 228aad1c
Fusion de modifications issues de la branche Riran2 et concernant les traductions.
Mise à jour des traductions.
Déplacement de certains éléments de la configuration du development.ini vers app_cfg.py (ceux qui posaient problème à PasteDeploy).
git-svn-id: https://vigilo-dev.si.c-s.fr/svn@1385 b22e2e97-25c9-44ff-b637-2e5ceca36478
vigiboard/controllers/root.py | ||
---|---|---|
53 | 53 |
redirect('/') |
54 | 54 |
|
55 | 55 |
@expose('vigiboard.html') |
56 |
@require(Any(not_anonymous(), msg=_("You need to be authenticated"))) |
|
56 |
@require(Any(not_anonymous(), msg=l_("You need to be authenticated")))
|
|
57 | 57 |
def default(self, page = None, host = None, service = None, output = None, |
58 | 58 |
trouble_ticket=None, *argv, **krgv): |
59 | 59 |
|
... | ... | |
154 | 154 |
@validate(validators={'idcorrevent':validators.Int(not_empty=True)}, |
155 | 155 |
error_handler=process_form_errors) |
156 | 156 |
@expose('json') |
157 |
@require(Any(not_anonymous(), msg=_("You need to be authenticated"))) |
|
157 |
@require(Any(not_anonymous(), msg=l_("You need to be authenticated")))
|
|
158 | 158 |
def history_dialog(self, idcorrevent): |
159 | 159 |
|
160 | 160 |
""" |
... | ... | |
229 | 229 |
@validate(validators={'idcorrevent':validators.Int(not_empty=True)}, |
230 | 230 |
error_handler=process_form_errors) |
231 | 231 |
@expose('vigiboard.html') |
232 |
@require(Any(not_anonymous(), msg=_("You need to be authenticated"))) |
|
232 |
@require(Any(not_anonymous(), msg=l_("You need to be authenticated")))
|
|
233 | 233 |
def event(self, idcorrevent): |
234 | 234 |
""" |
235 | 235 |
Affichage de l'historique d'un événement. |
... | ... | |
276 | 276 |
@validate(validators={'host':validators.NotEmpty(), |
277 | 277 |
'service':validators.NotEmpty()}, error_handler=process_form_errors) |
278 | 278 |
@expose('vigiboard.html') |
279 |
@require(Any(not_anonymous(), msg=_("You need to be authenticated"))) |
|
279 |
@require(Any(not_anonymous(), msg=l_("You need to be authenticated")))
|
|
280 | 280 |
def host_service(self, host, service): |
281 | 281 |
|
282 | 282 |
""" |
... | ... | |
337 | 337 |
"status":validators.OneOf(['NoChange', 'None', 'Acknowledged', |
338 | 338 |
'AAClosed']) |
339 | 339 |
}, error_handler=process_form_errors) |
340 |
@require(Any(not_anonymous(), msg=_("You need to be authenticated"))) |
|
340 |
@require(Any(not_anonymous(), msg=l_("You need to be authenticated")))
|
|
341 | 341 |
def update(self,**krgv): |
342 | 342 |
|
343 | 343 |
""" |
Also available in: Unified diff