doc/book/en/development/devcore/vreg.rst
branchstable
changeset 3581 669854258b90
parent 3258 6536ee4f37f7
child 4437 21f2e01fdd6a
equal deleted inserted replaced
3580:e270358f68cc 3581:669854258b90
   136 in which case the object is non selectable). Thus, on a multiple
   136 in which case the object is non selectable). Thus, on a multiple
   137 entities selector, one_line_rset makes the EntityRSSIconBox class non
   137 entities selector, one_line_rset makes the EntityRSSIconBox class non
   138 selectable. For an rset with one entity, the EntityRSSIconBox class
   138 selectable. For an rset with one entity, the EntityRSSIconBox class
   139 will have a higher score then RSSIconBox, which is what we wanted.
   139 will have a higher score then RSSIconBox, which is what we wanted.
   140 
   140 
   141 Of course, once this is done, you have to ::
   141 Of course, once this is done, you have to:
   142 
   142 
   143 * fill in the call method of EntityRSSIconBox
   143 * fill in the call method of EntityRSSIconBox
   144 
   144 
   145 * provide the default implementation of the method returning the RSS
   145 * provide the default implementation of the method returning the RSS
   146   stream url on AnyEntity
   146   stream url on AnyEntity
   159 Once in a while, one needs to understand why a view (or any AppObject)
   159 Once in a while, one needs to understand why a view (or any AppObject)
   160 is, or is not selected appropriately. Looking at which selectors fired
   160 is, or is not selected appropriately. Looking at which selectors fired
   161 (or did not) is the way. There exists a traced_selection context
   161 (or did not) is the way. There exists a traced_selection context
   162 manager to help with that.
   162 manager to help with that.
   163 
   163 
   164 Here is an example ::
   164 Here is an example:
   165 
   165 
   166 .. sourcecode:: python
   166 .. sourcecode:: python
   167 
   167 
   168     def possible_objects(self, registry, *args, **kwargs):
   168     def possible_objects(self, registry, *args, **kwargs):
   169         """return an iterator on possible objects in a registry for this result set
   169         """return an iterator on possible objects in a registry for this result set