Project

General

Profile

Revision a163af14

IDa163af14351e6093b66d7b0d47852d4de58bedd1
Parent df05a1cf
Child ea2115ec

Added by Francois POIROTTE over 11 years ago

Personnalisation des contrôleurs (#1106).

Permet l'ajout de contrôleur personnalisés dans les IHM !TurboGears.
Ceux-ci doivent être définis dans un groupe de points d'entrée bien
particulier (dont le nom dépend de l'IHM).
Ils seront ensuite ajoutés comme sous-contrôleurs du contrôleur
"custom" (donc accessible via "/custom/mon_controleur").

Change-Id: If7b67910410677ddcaf20e830951c0e1a63fd55c
Refs: #1106.
Reviewed-on: https://vigilo-dev.si.c-s.fr/review/1009
Tested-by: Build system <>
Reviewed-by: Francois POIROTTE <>

View differences:

vigigraph/controllers/root.py
18 18
from pkg_resources import resource_filename
19 19

  
20 20
from vigilo.turbogears.controllers.auth import AuthController
21
from vigilo.turbogears.controllers.custom import CustomController
21 22
from vigilo.turbogears.controllers.error import ErrorController
22 23
from vigilo.turbogears.controllers.proxy import ProxyController
23 24
from vigilo.turbogears.controllers.api.root import ApiRootController
......
40 41
    vigirrd = ProxyController('vigirrd', '/vigirrd/',
41 42
        not_anonymous(l_('You need to be authenticated')))
42 43
    api = ApiRootController("/api")
44
    custom = CustomController()
43 45

  
44 46
    @expose('index.html')
45 47
    @require(All(

Also available in: Unified diff