doc/book/en/intro/tutorial/create-cube.rst
changeset 2545 f8246ed962f6
parent 2544 282261b26774
child 2789 39712da6f397
child 3258 6536ee4f37f7
equal deleted inserted replaced
2544:282261b26774 2545:f8246ed962f6
   220 We can for example add in front of the publication date a prefix specifying
   220 We can for example add in front of the publication date a prefix specifying
   221 that the date we see is the publication date.
   221 that the date we see is the publication date.
   222 
   222 
   223 To do so, please apply the following changes:
   223 To do so, please apply the following changes:
   224 
   224 
   225 .. code-block:: python
   225 .. sourcecode:: python
   226 
   226 
   227   from cubicweb.web.views import baseviews
   227   from cubicweb.web.views import baseviews
   228 
   228 
   229 
   229 
   230   class BlogEntryPrimaryView(baseviews.PrimaryView):
   230   class BlogEntryPrimaryView(baseviews.PrimaryView):