doc/tutorials/advanced/part04_ui-base.rst
branch3.26
changeset 12452 eabea792525e
parent 12451 fd4e287012a9
child 12394 e847b5d1ffff
equal deleted inserted replaced
12451:fd4e287012a9 12452:eabea792525e
    21 
    21 
    22 Here is the code, samples from my cube's `views.py` file:
    22 Here is the code, samples from my cube's `views.py` file:
    23 
    23 
    24 .. sourcecode:: python
    24 .. sourcecode:: python
    25 
    25 
       
    26     from cubicweb import _
    26     from cubicweb.web import component
    27     from cubicweb.web import component
    27     from cubicweb.web.views import error
    28     from cubicweb.web.views import error
    28     from cubicweb.predicates import anonymous_user
    29     from cubicweb.predicates import anonymous_user
    29 
    30 
    30     class FourOhFour(error.FourOhFour):
    31     class FourOhFour(error.FourOhFour):