equal
deleted
inserted
replaced
44 self.maxrelated = self._cw.property_value('navigation.related-limit') |
44 self.maxrelated = self._cw.property_value('navigation.related-limit') |
45 entity = self.cw_rset.complete_entity(row, col) |
45 entity = self.cw_rset.complete_entity(row, col) |
46 self.render_entity(entity) |
46 self.render_entity(entity) |
47 |
47 |
48 def render_entity(self, entity): |
48 def render_entity(self, entity): |
|
49 self.render_entity_toolbox(entity) |
49 self.render_entity_title(entity) |
50 self.render_entity_title(entity) |
50 self.render_entity_toolbox(entity) |
|
51 # entity's attributes and relations, excluding meta data |
51 # entity's attributes and relations, excluding meta data |
52 # if the entity isn't meta itself |
52 # if the entity isn't meta itself |
53 if self.is_primary(): |
53 if self.is_primary(): |
54 boxes = self._prepare_side_boxes(entity) |
54 boxes = self._prepare_side_boxes(entity) |
55 else: |
55 else: |
159 for box in boxes: |
159 for box in boxes: |
160 if isinstance(box, tuple): |
160 if isinstance(box, tuple): |
161 try: |
161 try: |
162 label, rset, vid, dispctrl = box |
162 label, rset, vid, dispctrl = box |
163 except ValueError: |
163 except ValueError: |
164 warn('box views should now be defined as a 4-uple (label, rset, vid, dispctrl), ' |
164 warn('[3.5] box views should now be defined as a 4-uple (label, rset, vid, dispctrl), ' |
165 'please update %s' % self.__class__.__name__, |
165 'please update %s' % self.__class__.__name__, |
166 DeprecationWarning) |
166 DeprecationWarning) |
167 label, rset, vid = box |
167 label, rset, vid = box |
168 self.w(u'<div class="sideBox">') |
168 self.w(u'<div class="sideBox">') |
169 self.wview(vid, rset, title=label) |
169 self.wview(vid, rset, title=label) |