On Jul 3, 2007, at 7:57 AM, avdd wrote:
In SAC_Demo `paster shell` does not work, as pylons tries to import the models before the configuration has been read. My work-around was to instantiate PylonsSAContext within a function that is called from Globals.__init__, passing the app_conf down the PSAC.Speaking of pylons config, where is that going? I notice trunk is different to 0.9.5, and I'm having trouble tracking down any discussions about this. Is there a devel list?
Not so much at the moment, but we are going to open one up, especially as TurboGears dev's start planning on core parts along with Pylons.
The config revamp is a major cleanup to the configuration of Pylons, and will result in a single pylons.config object being created first thing by your project (well in advance of model imports). The pylons.config dict will be accessible anywhere *outside* of a request scope which also addresses quite a few problems people were having getting to config information in a reliable manner when the request was not running and when its handling a request.
This clean-up also results in a much clearer separation of concerns for the middleware.py and environment.py files (a ticket for this was closed as well).
The best place to keep up with Pylons dev right now is by watching the tickets on the Pylons trac, as most of the tickets are fairly thorough in their scope. And of course, all the changes will be detailed in the release notes, speaking of which we're hoping for a release candidate of Pylons 0.9.6 tonight, or tomorrow.
Cheers, Ben
smime.p7s
Description: S/MIME cryptographic signature
