#2237: call_on_startup/shutdown should be called after config has been
initialized
------------------------+---------------------------------------------------
Reporter: kikidonk | Owner:
Type: defect | Status: new
Priority: normal | Milestone: 2.0b6
Component: TurboGears | Version: trunk
Severity: normal | Keywords:
------------------------+---------------------------------------------------
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)
--
Ticket URL: <http://trac.turbogears.org/ticket/2237>
TurboGears <http://www.turbogears.org/>
TurboGears front-to-back web development
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "TurboGears Tickets" group.
This group is read-only. No posting by normal members allowed.
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/turbogears-tickets?hl=en?hl=en
-~----------~----~----~----~------~----~------~--~---