doc/book/en/annexes/faq.rst
changeset 10067 16c554c76eb4
parent 8754 9d5cfbde9856
child 10221 17ad882a211f
child 10379 a1cc6788e9de
equal deleted inserted replaced
10066:313ce53a7232 10067:16c554c76eb4
   194             for appobjects in self.itervalues():
   194             for appobjects in self.itervalues():
   195                 try:
   195                 try:
   196                     yield self._select_best(appobjects, *args, **kwargs)
   196                     yield self._select_best(appobjects, *args, **kwargs)
   197                 except NoSelectableObject:
   197                 except NoSelectableObject:
   198                     continue
   198                     continue
   199 
       
   200 Don't forget the 'from __future__ import with_statement' at the module
       
   201 top-level if you're using python 2.5.
       
   202 
   199 
   203 This will yield additional WARNINGs, like this::
   200 This will yield additional WARNINGs, like this::
   204 
   201 
   205     2009-01-09 16:43:52 - (cubicweb.selectors) WARNING: selector one_line_rset returned 0 for <class 'cubicweb.web.views.basecomponents.WFHistoryVComponent'>
   202     2009-01-09 16:43:52 - (cubicweb.selectors) WARNING: selector one_line_rset returned 0 for <class 'cubicweb.web.views.basecomponents.WFHistoryVComponent'>
   206 
   203