web/views/baseviews.py
changeset 254 b1eda3dd844a
parent 251 de7e74ff03f8
child 323 30c331fb17f0
equal deleted inserted replaced
253:57e88c0ba286 254:b1eda3dd844a
    20 from logilab.common.decorators import cached
    20 from logilab.common.decorators import cached
    21 from logilab.mtconverter import html_escape, TransformError
    21 from logilab.mtconverter import html_escape, TransformError
    22 
    22 
    23 from cubicweb import Unauthorized, NoSelectableObject, typed_eid
    23 from cubicweb import Unauthorized, NoSelectableObject, typed_eid
    24 from cubicweb.common.selectors import (yes, nonempty_rset, accept_selector,
    24 from cubicweb.common.selectors import (yes, nonempty_rset, accept_selector,
    25                                     one_line_rset, searchstate_selector, 
    25                                     one_line_rset, match_search_state, 
    26                                     req_form_params_selector, accept_rset_selector)
    26                                     req_form_params_selector, accept_rset_selector)
    27 from cubicweb.common.uilib import (cut, printable_value,  UnicodeCSVWriter,
    27 from cubicweb.common.uilib import (cut, printable_value,  UnicodeCSVWriter,
    28                                 ajax_replace_url, rql_for_eid)
    28                                 ajax_replace_url, rql_for_eid)
    29 from cubicweb.common.view import EntityView, AnyRsetView, EmptyRsetView
    29 from cubicweb.common.view import EntityView, AnyRsetView, EmptyRsetView
    30 from cubicweb.web.httpcache import MaxAgeHTTPCacheManager
    30 from cubicweb.web.httpcache import MaxAgeHTTPCacheManager
   758     """view called by the edition view when the user asks
   758     """view called by the edition view when the user asks
   759     to search for something to link to the edited eid
   759     to search for something to link to the edited eid
   760     """
   760     """
   761     id = 'search-associate'
   761     id = 'search-associate'
   762     title = _('search for association')
   762     title = _('search for association')
   763     __selectors__ = (one_line_rset, searchstate_selector, accept_selector)
   763     __selectors__ = (one_line_rset, match_search_state, accept_selector)
   764     accepts = ('Any',)
   764     accepts = ('Any',)
   765     search_states = ('linksearch',)
   765     search_states = ('linksearch',)
   766 
   766 
   767     def cell_call(self, row, col):
   767     def cell_call(self, row, col):
   768         rset, vid, divid, paginate = self.filter_box_context_info()
   768         rset, vid, divid, paginate = self.filter_box_context_info()