Is there a way to store an application wide variable?  Maybe is not a
best practice in python, I'm just trying to see if I can move some
project from java to python and I got to my first problem.

How can I define and access a variable from the templates (I'm using
the default's Genshi) for something like the path where the images are
stored without sending the variable on each controllers function.

i.e.:

<img src="${app_config.PATH_TO_IMAGES}/${p.image}" />

or how can I get session variables from the template as well.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TurboGears" 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/turbogears?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to