From eac2c2ddb2ada4b0acc58986841df80257a7c39b Mon Sep 17 00:00:00 2001 From: Lance Edgar Date: Mon, 11 Mar 2019 13:17:26 -0500 Subject: [PATCH] Fix some unicode literals for base template only necessary for python2, but we still must support that for now... --- tailbone/templates/base.mako | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/tailbone/templates/base.mako b/tailbone/templates/base.mako index f06edc91..9bc9dfa4 100644 --- a/tailbone/templates/base.mako +++ b/tailbone/templates/base.mako @@ -87,15 +87,16 @@ % if show_prev_next is not Undefined and show_prev_next:
+ ## NOTE: the u"" literals seem to be required for python2..not sure why % if prev_url: - ${h.link_to("« Older", prev_url, class_='button autodisable')} + ${h.link_to(u"« Older", prev_url, class_='button autodisable')} % else: - ${h.link_to("« Older", '#', class_='button', disabled='disabled')} + ${h.link_to(u"« Older", '#', class_='button', disabled='disabled')} % endif % if next_url: - ${h.link_to("Newer »", next_url, class_='button autodisable')} + ${h.link_to(u"Newer »", next_url, class_='button autodisable')} % else: - ${h.link_to("Newer »", '#', class_='button', disabled='disabled')} + ${h.link_to(u"Newer »", '#', class_='button', disabled='disabled')} % endif
% endif