On Wednesday, March 2, 2016 at 12:24:34 AM UTC-5, Bert JW Regeer wrote:
>
> How about before returning config.make_wsgi_app() you do the work, stuff 
> it into config.registry.settings, then add a new request method on request 
> that you call with: 
>
> request.get_data() 
>
> that simply pulls it from request.registry.settings. 
>
> Now it’s all in one place, safe and sound, and you only process it once, 
> upon application startup. 
>

Both of those ideas are great.

Especially storing the processed data in config.registry.settings.

I pushed this into an ApplicationCreated subscriber last night, but will 
pull it out and processes on app/__init__.py

-- 
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/pylons-discuss.
For more options, visit https://groups.google.com/d/optout.

Reply via email to