# HG changeset patch # User Laure Bourgois # Date 1228209173 -3600 # Node ID 451a3e35dbcb0a8980bf87f6ae62d6044cdbd5e2 # Parent 5012aba69e6289cdc06a2531acdb7fec375c0540 repairing error from preceding commit diff -r 5012aba69e62 -r 451a3e35dbcb 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'' % html_escape(self.req.base_url())) w(u'\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