diff -r 09ba3cb2a440 -r 92a0601b2523 web/views/baseviews.py --- a/web/views/baseviews.py Wed Mar 04 17:09:10 2009 +0100 +++ b/web/views/baseviews.py Wed Mar 04 17:12:28 2009 +0100 @@ -139,22 +139,19 @@ self.render_entity_metadata(entity) # entity's attributes and relations, excluding meta data # if the entity isn't meta itself - self.w(u'') - self.w(u'') - self.w(u'') + self.w(u'') # side boxes - self.w(u'') - self.w(u'') - self.w(u'
') + self.w(u'
') self.w(u'
') self.render_entity_attributes(entity, siderelations) self.w(u'
') self.content_navigation_components('navcontenttop') if self.main_related_section: self.render_entity_relations(entity, siderelations) - self.w(u'
') + self.w(u'
') self.render_side_related(entity, siderelations) - self.w(u'
') + self.w(u'') + self.w(u'
') self.content_navigation_components('navcontentbottom') def content_navigation_components(self, context): @@ -246,40 +243,28 @@ sideboxes = [(label, rset) for label, rset in self.get_side_boxes_defs(entity) if rset] if sideboxes: - self.w(u'') for label, rset in sideboxes: - self.w(u'') - self.w(u'
') self.w(u'
') self.wview('sidebox', rset, title=label) self.w(u'
') - self.w(u'
') elif siderelations: - self.w(u'') - self.w(u'') - self.w(u'
') self.w(u'
') for relatedinfos in siderelations: # if not relatedinfos[0].meta: # continue self._render_related_entities(entity, *relatedinfos) self.w(u'
') - self.w(u'
') boxes = list(self.vreg.possible_vobjects('boxes', self.req, self.rset, row=self.row, view=self, context='incontext')) if boxes: - self.w(u'') for box in boxes: - self.w(u'') - self.w(u'
') try: box.dispatch(w=self.w, row=self.row) except NotImplementedError: # much probably a context insensitive box, which only implements # .call() and not cell_call() - box.dispatch(w=self.w) - self.w(u'
') + box.dispatch(w=self.w) def is_side_related(self, rschema, eschema): return rschema.meta and \