Re: [web2py] Authorization decorators always generate db queries

2011-11-18 Thread Khalil KHAMLICHI
Hi, I think this is due to the fact of using RBAC (role based access control), which is for very secure applications, large apps are normaly not that much secured, but there are other solutions like fo example loading those tables into memory. Khalil

[web2py] Authorization decorators always generate db queries

2011-11-18 Thread Ids
Hi, I think we found a serious bug (at least, we hope it is not a designed feature). If you create a simple controller (like test.py) with the following actions: def test(): return dict() @auth.requires_permission('foo bar') def test2(): return dict() And a simple view (like test.html) with: