web/views/basetemplates.py
changeset 163 451a3e35dbcb
parent 158 18385a9bbba0
child 432 8a7f619fce96
--- 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