goa/appobjects/components.py
branch3.0
changeset 431 18b4dd650ef8
parent 254 b1eda3dd844a
child 692 800592b8d39b
equal deleted inserted replaced
430:6fbc0ab79a2d 431:18b4dd650ef8
    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, match_search_state,
    17 from cubicweb.common.selectors import (one_line_rset, match_search_state,
    18                                     accept_selector)
    18                                     accept)
    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 
    23 from google.appengine.api import datastore, mail
    23 from google.appengine.api import datastore, mail
    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, match_search_state, accept_selector)
    34     __selectors__ = (one_line_rset, match_search_state, accept)
    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)