Hi Tobias,
Am 28.08.2010 um 19:21 schrieb trx: > Hello everyone, > > i like to suggest a little feature, which comes in pretty handy i > think. I'd like to see a defaultarg argument in the web.application > class. This variable is then passed to each page as the first > argument. > Example: > [...] > class Environment: > [...] > > class Index: > def GET(self, env): > return env.render_template(...) # for example > > env = Environment() > app = web.application(URLS, globals(), defaultarg=env) I've been proposing something like that myself [1]. At the time I did prefer constructor arguments over handler method arguments, but in the end they serve the same purpose. Anyway, I'm all in favor of something like this, so +1 from me. Cheers, Ole. [1] <http://groups.google.com/group/webpy/browse_thread/thread/5a651b34dabf9cfe/8bbf916ce7b3d2c1> -- Ole Trenner <[email protected]> -- You received this message because you are subscribed to the Google Groups "web.py" 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/webpy?hl=en.
