equal
deleted
inserted
replaced
33 match_context, configuration_values, |
33 match_context, configuration_values, |
34 anonymous_user, authenticated_user) |
34 anonymous_user, authenticated_user) |
35 from cubicweb.schema import display_name |
35 from cubicweb.schema import display_name |
36 from cubicweb.utils import wrap_on_write |
36 from cubicweb.utils import wrap_on_write |
37 from cubicweb.uilib import toggle_action |
37 from cubicweb.uilib import toggle_action |
38 from cubicweb.web import component |
38 from cubicweb.web import component, uicfg |
39 from cubicweb.web.htmlwidgets import (MenuWidget, PopupBoxMenu, BoxSeparator, |
39 from cubicweb.web.htmlwidgets import (MenuWidget, PopupBoxMenu, BoxSeparator, |
40 BoxLink) |
40 BoxLink) |
41 |
41 |
42 VISIBLE_PROP_DEF = { |
42 VISIBLE_PROP_DEF = { |
43 _('visible'): dict(type='Boolean', default=True, |
43 _('visible'): dict(type='Boolean', default=True, |
291 |
291 |
292 def registration_callback(vreg): |
292 def registration_callback(vreg): |
293 vreg.register_all(globals().values(), __name__, (SeeAlsoComponent,)) |
293 vreg.register_all(globals().values(), __name__, (SeeAlsoComponent,)) |
294 if 'see_also' in vreg.schema: |
294 if 'see_also' in vreg.schema: |
295 vreg.register(SeeAlsoComponent) |
295 vreg.register(SeeAlsoComponent) |
|
296 uicfg.primaryview_section.tag_subject_of(('*', 'see_also', '*'), 'hidden') |