Quellcode durchsuchen

Add refer http link on hack

Bastien Sevajol vor 9 Jahren
Ursprung
Commit
827addef21
1 geänderte Dateien mit 2 neuen und 3 gelöschten Zeilen
  1. 2 3
      tracim/tracim/config/__init__.py

+ 2 - 3
tracim/tracim/config/__init__.py Datei anzeigen

@@ -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')