repairing error from preceding commit
authorLaure Bourgois <Laure.Bourgois@logilab.fr>
Tue, 02 Dec 2008 10:12:53 +0100
changeset 163 451a3e35dbcb
parent 162 5012aba69e62
child 164 031b97433e84
repairing error from preceding commit
web/views/basetemplates.py
--- a/web/views/basetemplates.py	Mon Dec 01 16:21:26 2008 +0100
+++ b/web/views/basetemplates.py	Tue Dec 02 10:12:53 2008 +0100
@@ -169,7 +169,6 @@
         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))
@@ -260,7 +259,8 @@
 
     id = 'main-no-top'
     
-    def template_header(self, content_type, view=None, page_title='oui', additional_headers=()):
+    def template_header(self, content_type, view=None, page_title='', additional_headers=()):
+        page_title = page_title or view.page_title()
         additional_headers = additional_headers or view.html_headers()
         whead = self.whead
         lang = self.req.lang