On May 30, 2007, at 3:27 PM, Mike Orr wrote:

>
> My app can find paste.deploy.CONFIG['sqlalchemy.echo_pool'] when run
> under 'paster shell', but it moves to
> CONFIG['app_conf']['sqlalchemy.echo_pool'] under 'paster serve'.  Yet
> myapp/config/middleware.py contains:
>
> def make_app(global_conf, full_stack=True, **app_conf):
>     # Setup the Paste CONFIG object, adding app_conf/global_conf  
> for legacy code
>     conf = global_conf.copy()
>     conf.update(app_conf)
>     conf.update(dict(app_conf=app_conf, global_conf=global_conf))
>     CONFIG.push_process_config(conf)
>
> which I thought was the latest way to do it.  I noticed an entry in
> the Pylons CHANGELOG about fixing this for 'paster shell', but that's
> the opposite of the problem I'm having.
> http://pylonshq.com/project/pylonshq/ticket/244

This ticket fixes the issue you're seeing in trunk. The paster shell  
command handles initializing CONFIG (not any of your project's code),  
and we forgot to update paster shell's version of CONFIG to use the  
new style merged config dict.

--
Philip Jenvey



--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" group.
To post to this group, send email to pylons-discuss@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/pylons-discuss?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to