Look here for more information about Auth and auth:
http://web2py.com/books/default/chapter/29/3#Adding-Authentication
Having your models in different folders can reduce the overhead per
request.
When your controller uses multiple tables , you can use symbolic links to
bring in the models
1. In the web2py book, there is an example for Auth settings, which
presumably resides at top-level inside a model:
auth.settings.register_onaccept.append(lambda form: mail.send(to='
y...@example.com', subject='new user', message=new user email is %s' %
form.vars.email))
and I wonder
1. I often look at the code. You might like to use this resource...
http://www.web2py.com/examples/static/epydoc/index.html
For example look in: gluon/tools.py / Class Auth
you will see the code to create the forms.
2. Depends on how many tables and functions you have. Unless you really
Thanks guys! Very helpful comments and explanations!
4 matches
Mail list logo