This commit is contained in:
Kovid Goyal 2013-06-19 12:39:20 +05:30
parent 8bd6cc840c
commit 8020f489ca

View File

@ -26,7 +26,7 @@ class Template(object):
self.html_lang = lang
def generate(self, *args, **kwargs):
if not kwargs.has_key('style'):
if 'style' not in kwargs:
kwargs['style'] = ''
for key in kwargs.keys():
if isbytestring(kwargs[key]):
@ -326,7 +326,6 @@ class TouchscreenFeedTemplate(Template):
bottom_navbar = copy.copy(navbar_t)
# print "\n%s\n" % etree.tostring(navbar_t, pretty_print=True)
# Build the page
head = HEAD(TITLE(feed.title))
if style:
@ -414,3 +413,4 @@ class TouchscreenNavBarTemplate(Template):
# print "\n%s\n" % etree.tostring(navbar, pretty_print=True)
self.root = HTML(head, BODY(navbar))