On Sunday, March 25, 2012 9:12:30 PM UTC-7, Jonathan Vanasco wrote:
>
> 99% of my per-environment setups are handled in the .ini file, and 
> available via the registry stash 
>
> I have a few 'variables' that I need defined within a package scope, 
> as I'm not going to have a request or event object handy.  

 

> I put 
> variables in quotes, because they're more like constants in Perl -- 
> they're only defined on init and never changed.  ( basically they 
> control things like which amazon s3 buckets items are stored in ). 
>
> does anyone have a clue how i could handle this ?


- You can access the registry via config.registry
- You could use get_current_registry
- You could make the registry global 
(http://pyramid.readthedocs.org/en/latest/narr/zca.html)
- get_appsettings might do the trick
 

-- 
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/pylons-discuss/-/mtVTreIdgokJ.
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