You are correct, that is what decorators are for. @logged in() def myControllerforLoggedInUser() return dict()
I agree that the folders need to be organized better, but this can be done without really re-programming, as web2py is very flexible. Why not try to create the folder structure and file structure you speak of as an application, and distribute it as a start-up app...then, if there is enough interest, it can be included in the default installation of web2py. Just my 2 cents. On Jun 20, 11:11 pm, cjrh <[email protected]> wrote: > On Jun 20, 8:07 am, Binh <[email protected]> wrote: > > > 4. Controllers don't seem to have a clean way to implement before and > > after filters. Maybe web2py needs to incorporate the idea of > > inheritance controllers like Rails. > > Unless I misunderstand some other subtlety, this is exactly what > decorators are for.

