Add explicit file encoding to all Mako templates.
Also remove some u"" style strings within templates, since they appear to be unnecessary.
This commit is contained in:
parent
124e28c0c2
commit
dcc1699f69
65 changed files with 69 additions and 7 deletions
|
@ -1,3 +1,4 @@
|
|||
## -*- coding: utf-8 -*-
|
||||
<%inherit file="/base.mako" />
|
||||
|
||||
<%def name="title()">Create Products Batch</%def>
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
## -*- coding: utf-8 -*-
|
||||
<%inherit file="/crud.mako" />
|
||||
|
||||
<%def name="context_menu_items()">
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
## -*- coding: utf-8 -*-
|
||||
<%inherit file="/grid.mako" />
|
||||
|
||||
<%def name="title()">Products</%def>
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
## -*- coding: utf-8 -*-
|
||||
<%inherit file="/products/crud.mako" />
|
||||
|
||||
<%def name="head_tags()">
|
||||
|
@ -19,7 +20,7 @@
|
|||
${form.render()|n}
|
||||
|
||||
% if image:
|
||||
${h.image(image_url, u"Product Image", id='product-image', path=image_path, use_pil=True)}
|
||||
${h.image(image_url, "Product Image", id='product-image', path=image_path, use_pil=True)}
|
||||
% endif
|
||||
</div>
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue