doc/book/en/tutorials/advanced/part05_ui-advanced.rst
changeset 8665 e65af61bde7d
parent 8190 2a3c1b787688
child 9256 697a8181ba30
equal deleted inserted replaced
8664:29652410c317 8665:e65af61bde7d
   213 
   213 
   214 .. sourcecode:: python
   214 .. sourcecode:: python
   215 
   215 
   216     from logilab.common.decorators import monkeypatch
   216     from logilab.common.decorators import monkeypatch
   217     from cubicweb import ValidationError
   217     from cubicweb import ValidationError
   218     from cubicweb.web import uicfg, component
   218     from cubicweb.web.views import uicfg, component
   219     from cubicweb.web.views import basecontrollers
   219     from cubicweb.web.views import basecontrollers
   220 
   220 
   221     # hide displayed_on relation using uicfg since it will be displayed by the box below
   221     # hide displayed_on relation using uicfg since it will be displayed by the box below
   222     uicfg.primaryview_section.tag_object_of(('*', 'displayed_on', '*'), 'hidden')
   222     uicfg.primaryview_section.tag_object_of(('*', 'displayed_on', '*'), 'hidden')
   223 
   223