Ticket #2237 (closed defect: fixed)
call_on_startup/shutdown should be called after config has been initialized
|Reported by:||kikidonk||Owned by:|
In tg/configuration.py http://trac.turbogears.org/browser/trunk/tg/configuration.py#L409
The call_on_startup and call_on_shutdown are called before init_config() is called
This means that I can't init stuff that i need to configure via my config file in those hooks (i'm thinking about turbomail or tgscheduler).
I think the fix would be to move the self.setup_startup_and_shutdown() after all init is done (at the end of load_environment)