|
|
@@ -1,5 +1,5 @@
|
|
1
|
1
|
# -*- coding: utf-8 -*-
|
|
2
|
|
-from tg import AppConfig, config
|
|
|
2
|
+from tg import AppConfig
|
|
3
|
3
|
|
|
4
|
4
|
from tracim.lib.auth.wrapper import AuthConfigWrapper
|
|
5
|
5
|
|
|
|
@@ -10,10 +10,10 @@ class TracimAppConfig(AppConfig):
|
|
10
|
10
|
"""
|
|
11
|
11
|
|
|
12
|
12
|
def after_init_config(self, conf):
|
|
13
|
|
- self._set_up_auth()
|
|
14
|
|
- # Fix an tg2 strange thing: auth_backend is set in config, but instance
|
|
|
13
|
+ self._set_up_auth(conf)
|
|
|
14
|
+ # Fix an tg2 strange thing: auth_backend is set in config, but instance
|
|
15
|
15
|
# of AppConfig has None in auth_backend attr
|
|
16
|
|
- self.auth_backend = config.auth_backend
|
|
|
16
|
+ self.auth_backend = conf['auth_backend']
|
|
17
|
17
|
|
|
18
|
|
- def _set_up_auth(self, ):
|
|
19
|
|
- AuthConfigWrapper.wrap(config)
|
|
|
18
|
+ def _set_up_auth(self, conf):
|
|
|
19
|
+ AuthConfigWrapper.wrap(conf)
|