web/views/basecomponents.py
changeset 6462 9586590060d4
parent 6437 d88be69179b8
child 6474 745b20ac1a68
equal deleted inserted replaced
6461:b546296227ff 6462:9586590060d4
   248         self.w(u' | '.join(html))
   248         self.w(u' | '.join(html))
   249         self.w(u'</div>')
   249         self.w(u'</div>')
   250 
   250 
   251 # contextual components ########################################################
   251 # contextual components ########################################################
   252 
   252 
   253 # class SeeAlsoVComponent(component.RelatedObjectsVComponent):
   253 class SeeAlsoComponent(component.RelatedObjectsCtxComponent):
   254 #     """display any entity's see also"""
   254     """display any entity's see also"""
   255 #     __regid__ = 'seealso'
   255     __regid__ = 'seealso'
   256 #     context = 'navcontentbottom'
   256     context = 'navcontentbottom'
   257 #     rtype = 'see_also'
   257     rtype = 'see_also'
   258 #     role = 'subject'
   258     role = 'subject'
   259 #     order = 40
   259     order = 40
   260 #     # register msg not generated since no entity use see_also in cubicweb itself
   260     title = _('see_also')
   261 #     title = _('ctxcomponents_seealso')
   261     # register msg not generated since no entity use see_also in cubicweb itself
   262 #     help = _('ctxcomponents_seealso_description')
   262     _('ctxcomponents_seealso')
       
   263     _('ctxcomponents_seealso_description')
       
   264 
   263 
   265 
   264 
   266 
   265 class MetaDataComponent(component.EntityCtxComponent):
   267 class MetaDataComponent(component.EntityCtxComponent):
   266     __regid__ = 'metadata'
   268     __regid__ = 'metadata'
   267     context = 'navbottom'
   269     context = 'navbottom'
   285                 view.render_title(wow)
   287                 view.render_title(wow)
   286             view.render_body(w)
   288             view.render_body(w)
   287             w(u'</div>\n')
   289             w(u'</div>\n')
   288 
   290 
   289 
   291 
   290 # def registration_callback(vreg):
   292 def registration_callback(vreg):
   291 #     vreg.register_all(globals().values(), __name__, (SeeAlsoVComponent,))
   293     vreg.register_all(globals().values(), __name__, (SeeAlsoComponent,))
   292 #     if 'see_also' in vreg.schema:
   294     if 'see_also' in vreg.schema:
   293 #         vreg.register(SeeAlsoVComponent)
   295         vreg.register(SeeAlsoComponent)