242 """display side related relations: |
242 """display side related relations: |
243 non-meta in a first step, meta in a second step |
243 non-meta in a first step, meta in a second step |
244 """ |
244 """ |
245 if hasattr(self, 'get_side_boxes_defs'): |
245 if hasattr(self, 'get_side_boxes_defs'): |
246 if rset: |
246 if rset: |
247 self.w(u'<table align="right" with="100%">') |
247 self.w(u'<table align="right" width="100%">') |
248 for label, rset in self.get_side_boxes_defs(entity): |
248 for label, rset in self.get_side_boxes_defs(entity): |
249 self.w(u'<tr><td>') |
249 self.w(u'<tr><td>') |
250 self.w(u'<div class="sideRelated">') |
250 self.w(u'<div class="sideRelated">') |
251 self.wview('sidebox', rset, title=label) |
251 self.wview('sidebox', rset, title=label) |
252 self.w(u'</div>') |
252 self.w(u'</div>') |
253 self.w(u'</td></tr>') |
253 self.w(u'</td></tr>') |
254 self.w(u'</table>') |
254 self.w(u'</table>') |
255 elif siderelations: |
255 elif siderelations: |
|
256 self.w(u'<table align="right" width="100%">') |
|
257 self.w(u'<tr><td>') |
256 self.w(u'<div class="sideRelated">') |
258 self.w(u'<div class="sideRelated">') |
257 for relatedinfos in siderelations: |
259 for relatedinfos in siderelations: |
258 # if not relatedinfos[0].meta: |
260 # if not relatedinfos[0].meta: |
259 # continue |
261 # continue |
260 self._render_related_entities(entity, *relatedinfos) |
262 self._render_related_entities(entity, *relatedinfos) |
261 self.w(u'</div>') |
263 self.w(u'</div>') |
262 self.w(u'<table align="right" with="100%">') |
264 self.w(u'</td></tr>') |
|
265 self.w(u'</table>') |
|
266 self.w(u'<table align="right" width="100%">') |
263 for box in self.vreg.possible_vobjects('boxes', self.req, self.rset, |
267 for box in self.vreg.possible_vobjects('boxes', self.req, self.rset, |
264 row=self.row, view=self, |
268 row=self.row, view=self, |
265 context='incontext'): |
269 context='incontext'): |
266 self.w(u'<tr><td>') |
270 self.w(u'<tr><td>') |
267 try: |
271 try: |