# HG changeset patch # User sylvain.thenault@logilab.fr # Date 1231516821 -3600 # Node ID f117f6cefad02c2e56b3b5fbe808654be707e184 # Parent 03964dd370e71b1ff47e24372a68a9f665ab974d# Parent 66804d97b919f44965a5cb6502b0885ddb9ba4d4 merge diff -r 03964dd370e7 -r f117f6cefad0 doc/book/en/D010-faq.en.txt --- a/doc/book/en/D010-faq.en.txt Fri Jan 09 17:00:01 2009 +0100 +++ b/doc/book/en/D010-faq.en.txt Fri Jan 09 17:00:21 2009 +0100 @@ -211,3 +211,17 @@ Any change applied to configuration file requires to restart your application. + +* I get NoSelectableObject exceptions: how do I debug selectors ? + + You just need to put the appropriate context manager around view/component + selection: :: + + from cubicweb.common.selectors import traced_selection + with traced_selection(): + comp = self.vreg.select_object('contentnavigation', 'wfhistory', + self.req, rset, context='navcontentbottom') + + This will yield additional WARNINGs, like this: :: + + 2009-01-09 16:43:52 - (cubicweb.selectors) WARNING: selector one_line_rset returned 0 for