cleaning code
authorLaure Bourgois <Laure.Bourgois@logilab.fr>
Mon, 01 Dec 2008 14:46:30 +0100
changeset 158 18385a9bbba0
parent 157 85af2e536fd5
child 159 ff7b0f8dcb3c
cleaning code
web/views/basetemplates.py
--- a/web/views/basetemplates.py	Mon Dec 01 14:43:40 2008 +0100
+++ b/web/views/basetemplates.py	Mon Dec 01 14:46:30 2008 +0100
@@ -169,6 +169,7 @@
         w = self.whead
         lang = self.req.lang
         self.write_doctype()
+        page_title = 'posted'
         w(u'<base href="%s" />' % html_escape(self.req.base_url()))
         w(u'<meta http-equiv="content-type" content="%s; charset=%s"/>\n'
           % (content_type, self.req.encoding))
@@ -259,8 +260,7 @@
 
     id = 'main-no-top'
     
-    def template_header(self, content_type, view=None, page_title='', additional_headers=()):
-        page_title = page_title or view.page_title()
+    def template_header(self, content_type, view=None, page_title='oui', additional_headers=()):
         additional_headers = additional_headers or view.html_headers()
         whead = self.whead
         lang = self.req.lang