"Reset password" has a problem in Web2py 2.15.4 The reset password utility sends the texts "Reset password" and "Click on the link %(link)s to reset your password" by email. I have written "Passwort zur*ü*ck setzen" and "Klicken Sie auf den Link %(link)s, um das Passwort zur*ü*ck zu setzen." to de.py. Now I get the following error messages. I think there is a problem with lazyT and the German umlaut "ü".
My workaround: I changed the texts to "Passwort zur*ue*ck setzen" and "Klicken Sie auf den Link %(link)s, um das Passwort zur*ue*ck zu setzen." and everything works fine. But the source code should be changed. Error ticket for "secure"Ticket ID 194.96.133.54.2017-09-09.21-08-05.6f78ff46-b388-450e-93b9-1ecdbf5631c5 <type 'exceptions.UnicodeDecodeError'> 'ascii' codec can't decode byte 0xc3 in position 12: ordinal not in range(128)Version web2py™ Version 2.15.4-stable+timestamp.2017.09.02.04.02.22 Python Python 2.7.12: /usr/local/bin/uwsgi (prefix: /usr/local)Traceback 1. 2. 3. 4. 5. 6. 7. 8. 9. 10. 11. 12. 13. 14. 15. 16. 17. 18. 19. 20. Traceback (most recent call last): File "/home/www-data/web2py/gluon/restricted.py", line 219, in restricted exec(ccode, environment) File "/home/www-data/web2py/applications/secure/controllers/default.py" <https://s.infosms.org/admin/default/edit/secure/controllers/default.py>, line 3074, in <module> File "/home/www-data/web2py/gluon/globals.py", line 414, in <lambda> self._caller = lambda f: f() File "/home/www-data/web2py/applications/secure/controllers/default.py" <https://s.infosms.org/admin/default/edit/secure/controllers/default.py>, line 3035, in user return dict(form=auth()) File "/home/www-data/web2py/gluon/tools.py", line 1925, in __call__ return getattr(self, args[0])() File "/home/www-data/web2py/gluon/tools.py", line 3613, in request_reset_password if self.email_reset_password(user): File "/home/www-data/web2py/gluon/tools.py", line 3637, in email_reset_password message=self.messages.reset_password % d): File "/home/www-data/web2py/gluon/tools.py", line 748, in send payload['Subject'] = encoded_or_raw(to_unicode(subject, encoding)) File "/home/www-data/web2py/gluon/_compat.py", line 155, in to_unicode return text_type(obj) UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 12: ordinal not in range(128) Error snapshot [image: help] <https://s.infosms.org/admin/default/ticket/secure/194.96.133.54.2017-09-09.21-08-05.6f78ff46-b388-450e-93b9-1ecdbf5631c5#> <type 'exceptions.UnicodeDecodeError'>('ascii' codec can't decode byte 0xc3 in position 12: ordinal not in range(128)) Attribute inspizieren Frames - *File /home/www-data/web2py/gluon/restricted.py in restricted at line 219* code arguments Variablen - *File /home/www-data/web2py/applications/secure/controllers/default.py in <module> at line 3074* code arguments Variablen - *File /home/www-data/web2py/gluon/globals.py in <lambda> at line 414* code arguments Variablen - *File /home/www-data/web2py/applications/secure/controllers/default.py in user at line 3035* code arguments Variablen - *File /home/www-data/web2py/gluon/tools.py in __call__ at line 1925* code arguments Variablen - *File /home/www-data/web2py/gluon/tools.py in request_reset_password at line 3613* code arguments Variablen - *File /home/www-data/web2py/gluon/tools.py in email_reset_password at line 3637* code arguments Variablen - *File /home/www-data/web2py/gluon/tools.py in send at line 748* code arguments Variablen - *File /home/www-data/web2py/gluon/_compat.py in to_unicode at line 155* code arguments Variablen Function argument list (obj=<lazyT 'Password reset'>, charset='utf-8', errors='strict') Variables global text_type <type 'unicode'> obj <lazyT 'Password reset'> Context locals Anfrage Sitzung Antwort In file: /home/www-data/web2py/applications/secure/controllers/default.py 1. <code object <module> at 0x7f7f26d774b0, file "/home/www-data/web2py/applications/secure/controllers/default.py", line 25> Regards, Martin -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.