For instance with the cube book, when changing the range of BookPagesFacet returns an empty result, then the scroll bar can not be scrolled any more and no other facet works. Once an empty rset is found, we can not change the facet settings to get back a non-empty rset. The traceback I get is:
2009-07-16 15:09:17 - (cubicweb.web) ERROR: an exception occured while calling js_component([u'edit_box',
u'DISTINCT Any X,AA,AB,AC,AD,AE ORDERBY AA WHERE X is Book, X title AA, X isbn13 AB, X isbn10 AC, X pages AD,
X modification_date AE, X has_text "1983", X publish_date >= "1984/01/01", X publish_date <= "2005/01/02",
X pages >= 143, X pages <= 551', u'boxes', {}]):
args: (<cubicweb.etwist.request.CubicWebTwistedRequestAdapter object at 0x48fedd0>,)
kwargs: ['rset'] ["<class 'cubicweb.web.views.boxes.EditBox'>"]
Traceback (most recent call last):
File "/home/sandrine/src/cubicweb/cubicweb/web/views/basecontrollers.py", line 260, in publish
result = func(*args)
File "/home/sandrine/src/cubicweb/cubicweb/web/views/basecontrollers.py", line 60, in wrapper
result = func(self, *args, **kwargs)
File "/home/sandrine/src/cubicweb/cubicweb/web/views/basecontrollers.py", line 364, in js_component
comp = self.vreg.select(registry, compid, self.req, rset=rset)
File "/home/sandrine/src/cubicweb/cubicweb/vregistry.py", line 203, in select
*args, **kwargs)
File "/home/sandrine/src/cubicweb/cubicweb/vregistry.py", line 243, in select_best
[repr(v) for v in vobjects]))
NoSelectableObject: args: (<cubicweb.etwist.request.CubicWebTwistedRequestAdapter object at 0x48fedd0>,)
kwargs: ['rset'] ["<class 'cubicweb.web.views.boxes.EditBox'>"]
| |
| priority | normal |
|---|---|
| type | bug |
| appeared in | <not specified> |
| done in | <not specified> |
| load | 0.000 |
| load left | 0.000 |
| closed by | <not specified> |


#344648 quiet db-create
Comments
The possible_values() implementation in the RangeFacet might be incorrect. I guess the facet usage should never lead to an empty resultset.