goa/appobjects/components.py
branchtls-sprint
changeset 1131 544609e83317
parent 731 ac4a94e50b60
child 1133 8a409ea0c9ec
equal deleted inserted replaced
1130:17ff4d4bfbd0 1131:544609e83317
     3 :organization: Logilab
     3 :organization: Logilab
     4 :copyright: 2008 LOGILAB S.A. (Paris, FRANCE), all rights reserved.
     4 :copyright: 2008 LOGILAB S.A. (Paris, FRANCE), all rights reserved.
     5 :contact: http://www.logilab.fr/ -- mailto:contact@logilab.fr
     5 :contact: http://www.logilab.fr/ -- mailto:contact@logilab.fr
     6 """
     6 """
     7 __docformat__ = "restructuredtext en"
     7 __docformat__ = "restructuredtext en"
     8 
       
     9 from os.path import join
       
    10 
     8 
    11 from logilab.mtconverter import html_escape
     9 from logilab.mtconverter import html_escape
    12 from logilab.common.decorators import cached
    10 from logilab.common.decorators import cached
    13 
    11 
    14 from cubicweb import typed_eid
    12 from cubicweb import typed_eid
    15 from cubicweb.selectors import one_line_rset, match_search_state, accept
    13 from cubicweb.selectors import one_line_rset, match_search_state, accept
    16 from cubicweb.schema import display_name
    14 from cubicweb.schema import display_name
    17 from cubicweb.common.view import StartupView, EntityView
    15 from cubicweb.common.view import StartupView, EntityView
    18 from cubicweb.web import Redirect
    16 from cubicweb.web import Redirect
    19 from cubicweb.web.views import vid_from_rset
    17 from cubicweb.web.views import vid_from_rset
    20 from cubicweb.goa.db import rset_from_objs
       
    21 
    18 
    22 from google.appengine.api import datastore, mail
    19 from google.appengine.api import mail
    23 
       
    24 from main import APPLROOT
       
    25 
    20 
    26 
    21 
    27 class SearchForAssociationView(EntityView):
    22 class SearchForAssociationView(EntityView):
    28     """view called by the edition view when the user asks
    23     """view called by the edition view when the user asks
    29     to search for something to link to the edited eid
    24     to search for something to link to the edited eid