Ok , thank you
Also when a user registers and i have in my model
auth.settings.registration_requires_verification = True
The user when submiting the form is redirected to index and never sees a
flash message saying
"Please check your email"
How can i have a flash message telling the user to check
Actually, it is not the form that gets passed to the
auth.settings.verify_email_onaccept function -- instead it is the user
record itself. That's why Bruno used the name "user" instead of "form" for
the argument to the lambda. You can see below that the email message is
showing a serialization
I don't think you noticed that Bruno changed the name of the lambda
argument to USER:
auth.settings.verify_email_onaccept = lambda USER:
mail.send(to='antoni...@cires.pt',subject='Conta pendente de Aprovação. Portal
Empreiteiros',message=repr(USER))
Anthony
On Thursday, January 24, 2013 9:04
i replaced form.vars by just form in the message and the email i get shows
me that form has no vars
so i use form.email and it works.
Is this correct?
2013/1/24 António Ramos
> GLOBAL NAME USER IS NOT DEFINED!
> :)
>
> i tried also "USERS" but same error!!!
>
>
>
> 2013/1/24 Bruno
GLOBAL NAME USER IS NOT DEFINED!
:)
i tried also "USERS" but same error!!!
2013/1/24 Bruno Rocha
>
> auth.settings.verify_email_onaccept = lambda USER:
> mail.send(to='antonio.ra...@cires.pt',subject='Conta pendente de Aprovação.
> Portal Empreiteiros',message=repr(USER))
>
> --
>
>
>
auth.settings.verify_email_onaccept = lambda USER:
mail.send(to='antonio.ra...@cires.pt',subject='Conta pendente de
Aprovação. Portal Empreiteiros',message=repr(USER))
--
auth.settings.verify_email_onaccept = lambda form:
mail.send(to='antonio.ra...@cires.pt',subject='Conta pendente de
Aprovação. Portal Empreiteiros',message=repr(users))
NameError: global name 'users' is not defined
2013/1/24 Bruno Rocha
>
> auth.settings.verify_email_onaccept = lambda user:
auth.settings.verify_email_onaccept = lambda user:
mail.send(to='antonio.ra...@cires.pt',subject='Conta pendente de
Aprovação. Portal Empreiteiros',message=repr(user))
--
i tried
auth.settings.verify_email_onaccept = lambda form:
mail.send(to='antonio.ra...@cires.pt',subject='Conta pendente de
Aprovação. Portal Empreiteiros',message=repr(form.vars))
but i get the error!!!
AttributeError: 'Row' object has no attribute 'vars'
2013/1/10 Massimo Di Pierro
>
9 matches
Mail list logo