web/views/tabs.py
branchstable
changeset 3929 9f314411cd04
parent 3849 afba6d304e71
child 3998 94cc7cad3d2d
child 4212 ab6573088b4a
equal deleted inserted replaced
3928:2ced335a9b55 3929:9f314411cd04
   177             self.w(tags.h1(self.req._(self.title)))
   177             self.w(tags.h1(self.req._(self.title)))
   178         self.wview(self.vid, rset, 'noresult')
   178         self.wview(self.vid, rset, 'noresult')
   179         self.w(u'</div>')
   179         self.w(u'</div>')
   180 
   180 
   181 
   181 
   182 class TabedPrimaryView(TabsMixin, primary.PrimaryView):
   182 class TabbedPrimaryView(TabsMixin, primary.PrimaryView):
   183     __abstract__ = True # don't register
   183     __abstract__ = True # don't register
   184 
   184 
   185     tabs = ['main_tab']
   185     tabs = ['main_tab']
   186     default_tab = 'main_tab'
   186     default_tab = 'main_tab'
   187 
   187 
   189         entity = self.complete_entity(row, col)
   189         entity = self.complete_entity(row, col)
   190         self.render_entity_title(entity)
   190         self.render_entity_title(entity)
   191         # XXX uncomment this in 3.6
   191         # XXX uncomment this in 3.6
   192         #self.render_entity_toolbox(entity)
   192         #self.render_entity_toolbox(entity)
   193         self.render_tabs(self.tabs, self.default_tab, entity)
   193         self.render_tabs(self.tabs, self.default_tab, entity)
   194 
   194 TabedPrimaryView = TabbedPrimaryView # XXX deprecate that typo!
   195 
   195 
   196 class PrimaryTab(primary.PrimaryView):
   196 class PrimaryTab(primary.PrimaryView):
   197     id = 'main_tab'
   197     id = 'main_tab'
   198     title = None
   198     title = None
   199 
   199