goa/appobjects/components.py
changeset 254 b1eda3dd844a
parent 237 3df2e0ae2eba
child 431 18b4dd650ef8
equal deleted inserted replaced
253:57e88c0ba286 254:b1eda3dd844a
    12 from logilab.common.decorators import cached
    12 from logilab.common.decorators import cached
    13 
    13 
    14 from cubicweb import typed_eid
    14 from cubicweb import typed_eid
    15 from cubicweb.schema import display_name
    15 from cubicweb.schema import display_name
    16 from cubicweb.common.view import StartupView, EntityView
    16 from cubicweb.common.view import StartupView, EntityView
    17 from cubicweb.common.selectors import (one_line_rset, searchstate_selector,
    17 from cubicweb.common.selectors import (one_line_rset, match_search_state,
    18                                     accept_selector)
    18                                     accept_selector)
    19 from cubicweb.web import Redirect
    19 from cubicweb.web import Redirect
    20 from cubicweb.web.views import vid_from_rset
    20 from cubicweb.web.views import vid_from_rset
    21 from cubicweb.goa.db import rset_from_objs
    21 from cubicweb.goa.db import rset_from_objs
    22 
    22 
    29     """view called by the edition view when the user asks
    29     """view called by the edition view when the user asks
    30     to search for something to link to the edited eid
    30     to search for something to link to the edited eid
    31     """
    31     """
    32     id = 'search-associate'
    32     id = 'search-associate'
    33     
    33     
    34     __selectors__ = (one_line_rset, searchstate_selector, accept_selector)
    34     __selectors__ = (one_line_rset, match_search_state, accept_selector)
    35     accepts = ('Any',)
    35     accepts = ('Any',)
    36     search_states = ('linksearch',)
    36     search_states = ('linksearch',)
    37 
    37 
    38     def cell_call(self, row, col):
    38     def cell_call(self, row, col):
    39         entity = self.entity(0, 0)
    39         entity = self.entity(0, 0)