On Jul 27, 1:25 am, mdipierro <mdipie...@cs.depaul.edu> wrote:
> auth.settings.registration_requires_approval = False
> auth.settings.register_onaccept = lambda form:
> auth.settings.mailer.send(....)

A nice little recipe :)

I have been thinking that currently we are limited in that only a
single onaccept / onvalidation can be added to each routine.
As I'm building my app, I see that what I really want to be able to do
is to chain together several of these.
This would be similar to the current auth chaining:
Either replace:
auth.settings.login_methods = []
or chain:
auth.settings.login_methods.append()

I'm not sure if this would be easy to add in a backwards-compatible
way?

F
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to