The Auth class has a __call__ method, which means Auth objects are callable. There's nothing special about the name "auth" -- it's just a convention. You could just as well do:
myauth = Auth(db) myauth() When you call auth(), it checks request.args(0) to see which Auth action has been requested and then calls the appropriate method (which in many cases produces a form). Anthony On Wednesday, December 18, 2013 2:41:31 PM UTC-5, Carlos Zenteno wrote: > > Newbee here... > > I know that Auth() is the class in gluon > and it initial use: auth = Auth(db) > > But I have seen some uses like fom = auth() > in some controllers. > > is there an auth() function besides the Auth() class? > where can I find this kind of stuff on my own? THanks... > -- 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 [email protected]. For more options, visit https://groups.google.com/groups/opt_out.

