Re: [web2py] Two questions about models

2012-06-27 Thread Jonathan Lundell
On Jun 27, 2012, at 5:52 AM, cyan wrote: > 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 ema

[web2py] Two questions about models

2012-06-27 Thread cyan
Hi, 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 wh