web/views/__init__.py
branchstable
changeset 9700 da7d341cca76
parent 9383 7b3fa5a7a5a3
child 10582 bc2f6f0d7433
equal deleted inserted replaced
9699:990676d3f39f 9700:da7d341cca76
   101         return 'list'
   101         return 'list'
   102     return 'table'
   102     return 'table'
   103 
   103 
   104 
   104 
   105 def linksearch_select_url(req, rset):
   105 def linksearch_select_url(req, rset):
   106     """when searching an entity to create a relation, return an url to select
   106     """when searching an entity to create a relation, return a URL to select
   107     entities in the given rset
   107     entities in the given rset
   108     """
   108     """
   109     req.add_js( ('cubicweb.ajax.js', 'cubicweb.edition.js') )
   109     req.add_js( ('cubicweb.ajax.js', 'cubicweb.edition.js') )
   110     target, eid, r_type, searchedtype = req.search_state[1]
   110     target, eid, r_type, searchedtype = req.search_state[1]
   111     if target == 'subject':
   111     if target == 'subject':