Hi Some simple questions related to the "debug" var defined in the development.ini file:
(1) Why is this variable defined using "set"? Other variables in the development.ini file aren't defined using "set", so what does make "debug" a special case? (2) I need to test whether the debug var is set in a Mako template, I do it as follows: % if config["debug"]: blabla % else: blabla % endif is it the correct way? Or should I use asbool(config["debug"]) as done in middleware.py? If so how can I make the asbool function available in my template? I didn't do any particular to be able to access the Pylons "config" object from my template, how does Pylons make it available for me? Thanks a lot, -- Eric --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
