Good point -- if your auth.requires(...) includes conditions that do 
database hits, it is better to put the conditions inside a lambda so the db 
hits only happen when the decorated action is actually called and not every 
time the controller is loaded (i.e., when other actions within the 
controller are called).

Anthony

On Thursday, March 8, 2012 1:44:31 PM UTC-5, Richard wrote:
>
> With lambda is better for speed :
> https://groups.google.com/forum/#!msg/web2py/A0z8DSZdYTo/H_1N6_4MZfEJ
>
> Richard
>
> On Thu, Mar 8, 2012 at 4:09 AM, Annet <[email protected]> wrote:
>
>> Hi Bruno,
>>
>> Thanks for your reply.
>>
>>
>> Kind regards,
>>
>> Annet
>
>
>

Reply via email to