doc/tutorials/advanced/part05_ui-advanced.rst
changeset 12556 d1c659d70368
parent 12417 d0206861996a
equal deleted inserted replaced
12555:4892e0e48556 12556:d1c659d70368
   194 
   194 
   195 .. sourcecode:: python
   195 .. sourcecode:: python
   196 
   196 
   197   from cubicweb.predicates import none_rset
   197   from cubicweb.predicates import none_rset
   198   from cubicweb.web.views import bookmark
   198   from cubicweb.web.views import bookmark
   199   from cubes.zone import views as zone
   199   from cubicweb_zone import views as zone
   200   from cubes.tag import views as tag
   200   from cubicweb_tag import views as tag
   201 
   201 
   202 
   202 
   203   # change bookmarks box selector so it's only displayed on startup views
   203   # change bookmarks box selector so it's only displayed on startup views
   204   bookmark.BookmarksBox.__select__ = bookmark.BookmarksBox.__select__ & none_rset()
   204   bookmark.BookmarksBox.__select__ = bookmark.BookmarksBox.__select__ & none_rset()
   205   # move zone box to the left instead of in the context frame and tweak its order
   205   # move zone box to the left instead of in the context frame and tweak its order