web/views/basetemplates.py
changeset 6141 b8287e54b528
parent 6140 65a619eb31c4
child 6225 a176e68b7d0d
equal deleted inserted replaced
6140:65a619eb31c4 6141:b8287e54b528
   186         self.w(u'</tr></table></div>\n')
   186         self.w(u'</tr></table></div>\n')
   187         self.wview('footer', rset=self.cw_rset)
   187         self.wview('footer', rset=self.cw_rset)
   188         self.w(u'</body>')
   188         self.w(u'</body>')
   189 
   189 
   190     def nav_column(self, view, context):
   190     def nav_column(self, view, context):
   191         boxes = list(self._cw.vreg['boxes'].poss_visible_objects(
   191         boxes = list(self._cw.vreg['ctxcomponents'].poss_visible_objects(
   192             self._cw, rset=self.cw_rset, view=view, context=context))
   192             self._cw, rset=self.cw_rset, view=view, context=context))
   193         if boxes:
   193         if boxes:
   194             getlayout = self._cw.vreg['components'].select
   194             getlayout = self._cw.vreg['components'].select
   195             self.w(u'<td id="navColumn%s"><div class="navboxes">\n' % context.capitalize())
   195             self.w(u'<td id="navColumn%s"><div class="navboxes">\n' % context.capitalize())
   196             for box in boxes:
   196             for box in boxes:
   256         w(u'<body>\n')
   256         w(u'<body>\n')
   257         w(u'<div id="page">')
   257         w(u'<div id="page">')
   258         w(u'<table width="100%" height="100%" border="0"><tr>\n')
   258         w(u'<table width="100%" height="100%" border="0"><tr>\n')
   259         w(u'<td id="navColumnLeft">\n')
   259         w(u'<td id="navColumnLeft">\n')
   260         self.topleft_header()
   260         self.topleft_header()
   261         boxes = list(self._cw.vreg['boxes'].poss_visible_objects(
   261         boxes = list(self._cw.vreg['ctxcomponents'].poss_visible_objects(
   262             self._cw, rset=self.cw_rset, view=view, context='left'))
   262             self._cw, rset=self.cw_rset, view=view, context='left'))
   263         if boxes:
   263         if boxes:
   264             w(u'<div class="navboxes">\n')
   264             w(u'<div class="navboxes">\n')
   265             for box in boxes:
   265             for box in boxes:
   266                 box.render(w=w)
   266                 box.render(w=w)
   407     """
   407     """
   408     __regid__ = 'contentheader'
   408     __regid__ = 'contentheader'
   409 
   409 
   410     def call(self, view, **kwargs):
   410     def call(self, view, **kwargs):
   411         """by default, display informal messages in content header"""
   411         """by default, display informal messages in content header"""
   412         components = self._cw.vreg['contentnavigation'].poss_visible_objects(
   412         components = self._cw.vreg['ctxcomponents'].poss_visible_objects(
   413             self._cw, rset=self.cw_rset, view=view, context='navtop')
   413             self._cw, rset=self.cw_rset, view=view, context='navtop')
   414         if components:
   414         if components:
   415             self.w(u'<div id="contentheader">')
   415             self.w(u'<div id="contentheader">')
   416             for comp in components:
   416             for comp in components:
   417                 comp.render(w=self.w, view=view)
   417                 comp.render(w=self.w, view=view)
   423     components
   423     components
   424     """
   424     """
   425     __regid__ = 'contentfooter'
   425     __regid__ = 'contentfooter'
   426 
   426 
   427     def call(self, view, **kwargs):
   427     def call(self, view, **kwargs):
   428         components = self._cw.vreg['contentnavigation'].poss_visible_objects(
   428         components = self._cw.vreg['ctxcomponents'].poss_visible_objects(
   429             self._cw, rset=self.cw_rset, view=view, context='navbottom')
   429             self._cw, rset=self.cw_rset, view=view, context='navbottom')
   430         if components:
   430         if components:
   431             self.w(u'<div id="contentfooter">')
   431             self.w(u'<div id="contentfooter">')
   432             for comp in components:
   432             for comp in components:
   433                 comp.render(w=self.w, view=view)
   433                 comp.render(w=self.w, view=view)