You may want to look at the lazy_cache decorator in gluon/cache.py. I think we need something like that for Auth.
On Wednesday, 25 September 2013 22:45:46 UTC-5, Mandar Vaze wrote: > > > On Wed, Sep 25, 2013 at 7:53 PM, Massimo Di Pierro > <massimo....@gmail.com<javascript:> > > wrote: > >> Let me clarify. You currently can pass auth to functions in modules and >> they can call auth methods. It is the decorators that would cause problems. >> > > Understood - in fact this is what we are doing right now (pass auth object > to functions in modules) so in a way we aren't "blocked" > Just that decorators are "nice" :) > > -Mandar > -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.