On 19 Sie, 16:36, Wyatt Baldwin <[email protected]> wrote:
>
> If I were you, I'd pass the `config` object that's returned from
> `load_environment` to the `auth_middleware` function instead of using
> `pylons.config`. Also, instead of passing the whole `config` object, I
> might jst pass just the values from `config` that are needed into
> `auth_middleware`.

That worked, thanks! I'll stick to this practice. Also:

> In general, I'd say that `pylons.config` should only be used in a
> request context.

I think docs should mention this, if they don't already.

-- 
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