I'm trying to access the Pylons configuration from inside a repoze.who "authenticator".. I'm using from pylons import config
, but it looks like it returns a configuration with default values, not the ones from production.ini.. What am I missing?
Asked
Active
Viewed 182 times
0

Joril
- 19,961
- 13
- 71
- 88
2 Answers
0
You must using pylons.config
after calling load_environment(global_conf, app_conf)
in config/middleware.py
or use direct app_conf

estin
- 3,051
- 1
- 24
- 31
-
Well the authenticator gets called by the login process, so AFAIK I *am* after the `load_environment` call – Joril Jan 27 '11 at 13:05