# HG changeset patch # User Sylvain Thénault # Date 1294311366 -3600 # Node ID ce35c6f2f2195b9eaab896fd4eebd0cd69c12cca # Parent c462147c9315b0dcd60256235a3e787d9805bede [footer template] refactor to ease addition of some content into the footer diff -r c462147c9315 -r ce35c6f2f219 web/views/basetemplates.py --- a/web/views/basetemplates.py Thu Jan 06 11:55:31 2011 +0100 +++ b/web/views/basetemplates.py Thu Jan 06 11:56:06 2011 +0100 @@ -367,13 +367,15 @@ class HTMLPageFooter(View): - """default html page footer: include footer actions - """ + """default html page footer: include footer actions""" __regid__ = 'footer' def call(self, **kwargs): - req = self._cw self.w(u'') + + def footer_content(self): actions = self._cw.vreg['actions'].possible_actions(self._cw, rset=self.cw_rset) footeractions = actions.get('footer', ()) @@ -382,8 +384,6 @@ self._cw._(action.title))) if i < (len(footeractions) - 1): self.w(u' | ') - self.w(u'') - class HTMLContentHeader(View): """default html page content header: