Steve wrote:
> And this all works fine, I was just looking for perhaps a prettier way
> to let the entire application know whether it needed to the use the
> proxy (because it's a development environment) or not (prod.) without
> having to edit too much code between environments.
>   
from turbogears import config

if config.get('server.environment') == 'development':
   bla bla..


Actually, I would put this, in dev.cfg:

proxy.on = True
proxy.url = '...'
proxy.port = '...'

and then

if config.get('proxy.on',False):
   bla bla...


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