[web2py] Book bug: auth callback example

2012-08-16 Thread JoeCodeswell
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)) Above causes a ticket saying: auth.settings.verify_email_onaccept(lambda form:\ TypeError: 'list' object is not callable Th

[web2py] Book-bug

2012-01-20 Thread Johann Spies
The statement in the book "*You can truncate the table, i.e., delete all records and reset the counter of the id*." is not correct. The id-counter does not get reset during truncate. That is the case with Postgresql. I have not tested that on other databases. Regards Johann -- Because experie