# HG changeset patch # User Sylvain Thénault # Date 1286979440 -7200 # Node ID a91f3541b3dd890013775712a29ff1d673007715 # Parent de7f53cf75ec8ca30a5c9bdcbca70a3ad8448208 [see also component] drop it, we can acheive the same result with uicfg rules diff -r de7f53cf75ec -r a91f3541b3dd web/views/basecomponents.py --- a/web/views/basecomponents.py Wed Oct 13 16:16:48 2010 +0200 +++ b/web/views/basecomponents.py Wed Oct 13 16:17:20 2010 +0200 @@ -250,19 +250,6 @@ # contextual components ######################################################## -class SeeAlsoComponent(component.RelatedObjectsCtxComponent): - """display any entity's see also""" - __regid__ = 'seealso' - context = 'navcontentbottom' - rtype = 'see_also' - role = 'subject' - order = 40 - title = _('see_also') - # register msg not generated since no entity use see_also in cubicweb itself - _('ctxcomponents_seealso') - _('ctxcomponents_seealso_description') - - class MetaDataComponent(component.EntityCtxComponent): __regid__ = 'metadata' @@ -287,10 +274,3 @@ view.render_title(wow) view.render_body(w) w(u'\n') - - -def registration_callback(vreg): - vreg.register_all(globals().values(), __name__, (SeeAlsoComponent,)) - if 'see_also' in vreg.schema: - vreg.register(SeeAlsoComponent) - uicfg.primaryview_section.tag_subject_of(('*', 'see_also', '*'), 'hidden')