doc/book/en/A02a-create-cube.en.txt
changeset 1253 9716a9f77980
parent 1249 905d76e38433
child 1440 4fc48f2a1748
equal deleted inserted replaced
1251:af40e615dc89 1253:9716a9f77980
   202 ``cubicweb.common.selector`` and a library of methods used to
   202 ``cubicweb.common.selector`` and a library of methods used to
   203 compute scores is available in ``cubicweb.vregistry.vreq``.
   203 compute scores is available in ``cubicweb.vregistry.vreq``.
   204 
   204 
   205 It is possible to define multiple views for the same identifier
   205 It is possible to define multiple views for the same identifier
   206 and to associate selectors and filters to allow the application
   206 and to associate selectors and filters to allow the application
   207 to find the best way to render the data. We will see more details
   207 to find the best way to render the data. 
   208 on this in :ref:`ViewDefinition`.
       
   209 
   208 
   210 For example, the view named ``primary`` is the one used to display
   209 For example, the view named ``primary`` is the one used to display
   211 a single entity. We will now show you how to customize this view.
   210 a single entity. We will now show you how to customize this view.
   212 
   211 
   213 
   212 
   264 
   263 
   265 The above source code defines a new primary view for ``BlogEntry``. 
   264 The above source code defines a new primary view for ``BlogEntry``. 
   266 
   265 
   267 Since views are applied to result sets and result sets can be tables of
   266 Since views are applied to result sets and result sets can be tables of
   268 data, we have to recover the entity from its (row,col)-coordinates.
   267 data, we have to recover the entity from its (row,col)-coordinates.
   269 We will get to this in more detail later.
   268 The view has a ``self.w()`` method that is used to output data, in our
   270 
   269 example HTML output.
   271 The view has a ``self.w()`` method that is used to output data. In our
   270 
   272 example we use it to output HTML tags and values of the entity's attributes.
   271 You can find more details about views and selectors in :ref:`ViewDefinition`.
   273 
   272 
       
   273