web/component.py
changeset 6461 b546296227ff
parent 6452 6b6a2fa28069
child 6468 40033d536ed8
equal deleted inserted replaced
6460:b62bd7cd71df 6461:b546296227ff
   512             w(u'</td><td>')
   512             w(u'</td><td>')
   513             w(u'<div id="%sHolder"></div>' % self.domid)
   513             w(u'<div id="%sHolder"></div>' % self.domid)
   514             w(u'</td></tr></table>')
   514             w(u'</td></tr></table>')
   515 
   515 
   516 
   516 
       
   517 class RelatedObjectsCtxComponent(EntityCtxComponent):
       
   518     """a contextual component to display entities related to another"""
       
   519     __select__ = EntityCtxComponent.__select__ & partial_has_related_entities()
       
   520     context = 'navcontentbottom'
       
   521     rtype = None
       
   522     role = 'subject'
       
   523 
       
   524     vid = 'list'
       
   525 
       
   526     def render_body(self, w):
       
   527         rset = self.entity.related(self.rtype, role(self))
       
   528         self.wview(self.vid, rset)
       
   529 
       
   530 
   517 # old contextual components, deprecated ########################################
   531 # old contextual components, deprecated ########################################
   518 
   532 
   519 class EntityVComponent(Component):
   533 class EntityVComponent(Component):
   520     """abstract base class for additinal components displayed in content
   534     """abstract base class for additinal components displayed in content
   521     headers and footer according to:
   535     headers and footer according to: