--- a/web/views/baseviews.py Mon Feb 16 18:26:13 2009 +0100
+++ b/web/views/baseviews.py Mon Feb 16 19:20:30 2009 +0100
@@ -22,12 +22,12 @@
from logilab.mtconverter import TransformError, html_escape, xml_escape
from cubicweb import Unauthorized, NoSelectableObject, typed_eid
-from cubicweb.common.selectors import (yes, nonempty_rset, accept,
- one_line_rset, match_search_state,
+from cubicweb.common.selectors import (yes, empty_rset, nonempty_rset, one_line_rset,
+ accept, match_search_state,
match_form_params, accept_rset)
from cubicweb.common.uilib import (cut, printable_value, UnicodeCSVWriter,
ajax_replace_url, rql_for_eid, simple_sgml_tag)
-from cubicweb.common.view import EntityView, AnyRsetView, EmptyRsetView
+from cubicweb.common.view import EntityView, AnyRsetView, View
from cubicweb.web.httpcache import MaxAgeHTTPCacheManager
from cubicweb.web.views import vid_from_rset, linksearch_select_url
@@ -42,8 +42,9 @@
cell_call = call
-class NoResultView(EmptyRsetView):
+class NoResultView(View):
"""default view when no result has been found"""
+ __selectors__ = (empty_rset,)
id = 'noresult'
def call(self, **kwargs):