diff -r 66ff0b2f7d03 -r ed668804af37 web/views/basetemplates.py --- a/web/views/basetemplates.py Mon Feb 16 16:24:24 2009 +0100 +++ b/web/views/basetemplates.py Mon Feb 16 20:34:52 2009 +0100 @@ -19,9 +19,8 @@ # main templates ############################################################## +class LogInOutTemplate(MainTemplate): -class LogInOutTemplate(MainTemplate): - def call(self): self.set_request_content_type() w = self.w @@ -43,7 +42,7 @@ w(u'\n'.join(additional_headers) + u'\n') self.template('htmlheader', rset=self.rset) w(u'
')
@@ -308,7 +323,7 @@
class HTMLHeader(Template):
"""default html headers"""
id = 'htmlheader'
-
+
def call(self, **kwargs):
self.favicon()
self.stylesheets()
@@ -320,7 +335,7 @@
favicon = self.req.external_resource('FAVICON', None)
if favicon:
self.whead(u'\n' % favicon)
-
+
def stylesheets(self):
req = self.req
add_css = req.add_css
@@ -330,11 +345,11 @@
add_css(css, u'print', localfile=False)
for css in req.external_resource('IE_STYLESHEETS'):
add_css(css, localfile=False, ieonly=True)
-
+
def javascripts(self):
for jscript in self.req.external_resource('JAVASCRIPTS'):
self.req.add_js(jscript, localfile=False)
-
+
def alternates(self):
urlgetter = self.vreg.select_component('rss_feed_url', self.req, self.rset)
if urlgetter is not None:
@@ -352,7 +367,7 @@
class HTMLPageHeader(Template):
"""default html page header"""
id = 'header'
-
+
def call(self, view, **kwargs):
self.main_header(view)
self.w(u'''
@@ -361,7 +376,7 @@
self.w(u'''
''')
-
+
def main_header(self, view):
"""build the top menu with authentification info and the rql box"""
self.w(u' %s ' % msg)
@@ -413,7 +428,7 @@
"""default html page footer: include logo if any, and close the HTML body
"""
id = 'footer'
-
+
def call(self, **kwargs):
req = self.req
self.w(u' |