equal
deleted
inserted
replaced
161 We'll show you now an example of a ``primary`` view and how to customize it. |
161 We'll show you now an example of a ``primary`` view and how to customize it. |
162 |
162 |
163 If you want to change the way a ``BlogEntry`` is displayed, just override |
163 If you want to change the way a ``BlogEntry`` is displayed, just override |
164 the method ``cell_call()`` of the view ``primary`` in ``BlogDemo/views.py`` :: |
164 the method ``cell_call()`` of the view ``primary`` in ``BlogDemo/views.py`` :: |
165 |
165 |
166 01. from ginco.web.views import baseviews |
166 01. from cubicweb.web.views import baseviews |
167 02. |
167 02. |
168 03. class BlogEntryPrimaryView(baseviews.PrimaryView): |
168 03. class BlogEntryPrimaryView(baseviews.PrimaryView): |
169 04. |
169 04. |
170 05. accepts = ('BlogEntry',) |
170 05. accepts = ('BlogEntry',) |
171 06. |
171 06. |