Hi,
I've just updated my project to Web2py 2.12.2 and found a little issue that
wasn't there in my previouse versie 2.10.something...
I render a HTML template for the 'reset password' email like this:
auth.messages.reset_password =
response.render('templates/email/reset_password.html',
base_url='http://' +
request.env.http_host,
portal_name=site_settings.portal_name,
password_url=URL(r=request,
c='default', f='choose_new_password') + '?key=%(key)s')
The template itself looks like this:
<html>
<head>
{{include 'templates/email/includes/css.html'}}
</head>
{{include 'templates/email/includes/body_top.html'}}
<p>
Click on the URL
<a
href="{{=base_url}}{{=password_url}}">{{=base_url}}{{=password_url}}</a>
</p>
{{include 'templates/email/includes/body_bottom.html'}}
</html>
After disabling the includes and partial css format in the css.html I've
discovered that the following lines in css.html:
<style type="text/css">
table {
width: 100%;
border-collapse: collapse;
}
</style>
Are causing this error:
unsupported format character ';' (0x3b) at index 397
When I change "100%;" into, for example, "100px;" the error is gone...
downside it that the layout of the email is also 'gone' ;)
It this a bug? Or do I need to do things differently and did is work by
accident in previous versions of Web2Py?
--
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 [email protected].
For more options, visit https://groups.google.com/d/optout.