---
 web/app/snapshot/templates/page.mako |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/web/app/snapshot/templates/page.mako 
b/web/app/snapshot/templates/page.mako
index 6a42b13..839aae4 100644
--- a/web/app/snapshot/templates/page.mako
+++ b/web/app/snapshot/templates/page.mako
@@ -2,7 +2,7 @@
 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" 
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd";>
 <html xmlns="http://www.w3.org/1999/xhtml";>
        <head>
-               % if c.title == "":
+               % if context.get('c.title', UNDEFINED) is UNDEFINED:
                        <title>${app_globals.domain}</title>
                % else:
                        <title>${c.title} - ${app_globals.domain}</title>
@@ -14,7 +14,7 @@
                <div id="top">
                        <a id="logo" href="http://${app_globals.domain}";><img 
src="/static/images/top.png" alt="${app_globals.domain}" width="644" 
height="71"/></a>
                </div>
-               % if not c.breadcrumbs is UNDEFINED and (len(c.breadcrumbs) != 
0):
+               % if context.get('c.breadcrumbs', UNDEFINED) is not UNDEFINED 
and (len(c.breadcrumbs) != 0):
                        <div id="pageheader">
                        <ul id="breadcrumbs" style="font-size:small;">
                                % for crumb in c.breadcrumbs:
@@ -35,7 +35,7 @@
                        </div>
                % endif
 
-% if not c.msg is UNDEFINED and c.msg != "":
+% if context.get('c.msg', UNDEFINED) is not UNDEFINED and c.msg != "":
 <p>${c.msg}</p>
 % endif
 
-- 
1.7.2.5


-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]
Archive: http://lists.debian.org/[email protected]

Reply via email to