Ok, with the help of the IRC people and a look at pylons.config
(http://bitbucket.org/bbangert/pylons/src/tip/pylons/configuration.py)
I've got it working: http://pastebin.com/5Q4m1S9G
Actually I don't need global_conf, so in my code I have directly
config.push_process_config(local_conf).

This solves the issue for the config (which is the only thing I need)
but it doesn't provide the entire app environment...

On Jul 18, 3:09 pm, Francesco Mazzoli <[email protected]> wrote:
> Hi,
> I am trying to load the app environment (expecially the config) from
> outside a request and I am following the instructions posted by Ben
> here:http://pylonshq.com/snippets/running_commands_with_the_app_environment
> .
> However they seem to be invalid now with Pylons 1.0, since after doing
> that if I try to get some parameters out of pylons.config I get a key
> error.
> Actually something gets loaded, this are the keys I have in
> pylons.config:
> pylons.app_globals
> pylons.request_options
> pylons.paths
> pylons.environ_config
> pylons.package
> pylons.strict_tmpl_context
> pylons.h
> pylons.tmpl_context_attach_args
> debug
> pylons.response_options
>
> but all the ini-specific paramenters are not there.
> How should I fix this?
>
> Thanks,
> Francesco

-- 
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" group.
To post to this group, send email to [email protected].
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