[web2py] Re: Unsuccessful password reset

2013-10-07 Thread lesssugar
Worked - like - charm. :) On Monday, October 7, 2013 4:37:02 PM UTC+2, Massimo Di Pierro wrote: > > This is the problem: > > > > Notice you are extending mailing/template.html and you may have more > similar problems there. > > This is subtle. auth.messages.reset_password is supposed to be

[web2py] Re: Unsuccessful password reset

2013-10-07 Thread Massimo Di Pierro
This is the problem: Notice you are extending mailing/template.html and you may have more similar problems there. This is subtle. auth.messages.reset_password is supposed to be a string with placeholders like %(key)s. Internally the placeholders are replaced using message = auth.mes

[web2py] Re: Unsuccessful password reset

2013-10-07 Thread Massimo Di Pierro
On Monday, 7 October 2013 09:04:07 UTC-5, lesssugar wrote: > > Here's the code of mailing/pass_reset.html: > > {{extend 'mailing/template.html'}} > > > > > > > > Your requested password reset >

[web2py] Re: Unsuccessful password reset

2013-10-07 Thread lesssugar
Here's the code of mailing/pass_reset.html: {{extend 'mailing/template.html'}} Your requested pasword reset Click the link below to

[web2py] Re: Unsuccessful password reset

2013-10-07 Thread Massimo Di Pierro
Sorry. Now I understand better what you are trying to do. Your invalid character must be in mailing/pass_reset.html. Can you show us that file? On Monday, 7 October 2013 04:17:53 UTC-5, lesssugar wrote: > > Your problem does not come from the code you show us > > > When I comment this piece of co

[web2py] Re: Unsuccessful password reset

2013-10-07 Thread lesssugar
> > Your problem does not come from the code you show us When I comment this piece of code *(A)*: auth.messages.reset_password = response.render( 'mailing/pass_reset.html', dict(subject='Password reset', link = 'http://'+request.env.http_host+URL('default', 'user', args=['reset_

[web2py] Re: Unsuccessful password reset

2013-10-06 Thread Massimo Di Pierro
I cannot help you without looking at the entire code. Your problem does not come from the code you show us. The code you are showing is wrong because your link contains "%(key)s" which is unresolved but this is not the cause of the (0x22) problem. On Sunday, 6 October 2013 11:53:27 UTC-5, les

[web2py] Re: Unsuccessful password reset

2013-10-06 Thread lesssugar
Massimo (or anyone willing to help), all I'm trying to achieve is use my own email template to send a password-reset message to user. How do I do this properly? Currently, I have this *db.py* auth.messages.reset_password = response.render( 'mailing/pass_reset.html', dict(subject='Passwo

[web2py] Re: Unsuccessful password reset

2013-10-02 Thread Massimo Di Pierro
What is this supposed to do? {{=XML('%(key)s')}} Are you sure you are not looking for: Go to password reset Is key a variable? Anyway, I am not sure your problem comes from this code. On Wednesday, 2 October 2013 08:14:17 UTC-5, lesssugar wrote: > > Sorry, Massimo, but I really don't get it.

[web2py] Re: Unsuccessful password reset

2013-10-02 Thread lesssugar
Sorry, Massimo, but I really don't get it. Is the slash causing the problem? I use '[controller]/[view.html]' to render other emails and it's all ok. I even tried to do it this way in the mailing view: Go to password reset - and nothing, still the same error. I would be grateful for another h

[web2py] Re: Unsuccessful password reset

2013-10-01 Thread Massimo Di Pierro
You probably have same strange character in 'mailing/pass_reset.html' On Tuesday, 1 October 2013 13:26:46 UTC-5, lesssugar wrote: > > I'm trying to send a custom email template to user when they perform > password reset: > > *db.py:* > > auth.messages.reset_password = response.render( > 'mail