[web2py] Re: Two questions about models

2012-06-27 Thread Cliff Kachinske
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

[web2py] Re: Two questions about models

2012-06-27 Thread Anthony
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

[web2py] Re: Two questions about models

2012-06-27 Thread villas
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

[web2py] Re: Two questions about models

2012-06-27 Thread cyan
Thanks guys! Very helpful comments and explanations!