Commits

Andriy Kornatskyy committed 8f51d9d

Fixed unicode error in rendering an author name on list content page for guestbook demo.

Comments (0)

Files changed (2)

demos/guestbook/config.py

         WidgetExtension(),
     ])
 engine.global_vars.update({
-    'h': html_escape
+    'h': html_escape,
+    's': lambda s: s
 })
 options.update({
     'render_template': WheezyTemplate(engine)

demos/guestbook/templates/list.html

 @for g in greetings:
 <p>
     @g.id!s. On @g.created_on.strftime('%m/%d/%Y %I:%M %p'),
-    <b>@str(g.author or 'anonymous')</b> wrote:
+    <b>@s(g.author or 'anonymous')</b> wrote:
     <blockquote>@g.message.replace('\n', '<br/>')</blockquote>
 </p>
 @end