소스 검색

Add refer http link on hack

Bastien Sevajol 9 년 전
부모
커밋
827addef21
1개의 변경된 파일2개의 추가작업 그리고 3개의 파일을 삭제
  1. 2 3
      tracim/tracim/config/__init__.py

+ 2 - 3
tracim/tracim/config/__init__.py 파일 보기

@@ -11,7 +11,6 @@ class TracimAppConfig(AppConfig):
11 11
 
12 12
     def after_init_config(self, conf):
13 13
         AuthConfigWrapper.wrap(conf)
14
-        #  Fix an tg2 strange thing: auth_backend is set in config, but instance
15
-        #  of AppConfig has None in auth_backend attr
16
-        self.auth_backend = conf['auth_backend']
14
+        #  Fix tg2 problem: https://groups.google.com/forum/#!topic/turbogears/oL_04O6eCQQ
15
+        self.auth_backend = conf.get('auth_backend')
17 16
         self.sa_auth = conf.get('sa_auth')