Revision 029ee76e
tburguie: modification pour suivre la nouvelle page de configuration initial de Turbogears sur le Wiki Vigilo (http://vigilo-dev.si.c-s.fr/trac/wiki/TurboGears)
git-svn-id: https://vigilo-dev.si.c-s.fr/svn@1030 b22e2e97-25c9-44ff-b637-2e5ceca36478
vigigraph/config/app_cfg.py | ||
---|---|---|
14 | 14 |
|
15 | 15 |
""" |
16 | 16 |
|
17 |
from tg.configuration import AppConfig
|
|
17 |
from vigilo.turbogears import VigiloAppConfig
|
|
18 | 18 |
|
19 |
class MyAppConfig(AppConfig): |
|
20 |
"""We overload AppConfig for our needs.""" |
|
19 |
class MyAppConfig(VigiloAppConfig):
|
|
20 |
"""We overload VigiloAppConfig for our needs."""
|
|
21 | 21 |
|
22 | 22 |
def __init__(self, app_name): |
23 | 23 |
super(MyAppConfig, self).__init__() |
... | ... | |
91 | 91 |
from vigigraph import model |
92 | 92 |
from vigigraph.lib import app_globals, helpers |
93 | 93 |
|
94 |
base_config = MyAppConfig('vigigraph')
|
|
94 |
base_config = VigiloAppConfig('vigigraph')
|
|
95 | 95 |
base_config.renderers = [] |
96 | 96 |
|
97 | 97 |
# Pour gérer les thèmes, la notation "pointée" n'est pas utilisée. |
... | ... | |
104 | 104 |
# met en place les middlewares nous même pour pouvoir gérer les |
105 | 105 |
# thèmes (cf. ./middleware.py). |
106 | 106 |
base_config.serve_static = False |
107 |
base_config.use_toscawidgets = True |
|
107 | 108 |
|
108 | 109 |
base_config.package = vigigraph |
109 | 110 |
|
Also available in: Unified diff