web/views/embedding.py
branch3.0
changeset 431 18b4dd650ef8
parent 254 b1eda3dd844a
child 631 99f5852f8604
equal deleted inserted replaced
430:6fbc0ab79a2d 431:18b4dd650ef8
    16 
    16 
    17 from cubicweb import urlquote # XXX should use view.url_quote method
    17 from cubicweb import urlquote # XXX should use view.url_quote method
    18 from cubicweb.interfaces import IEmbedable
    18 from cubicweb.interfaces import IEmbedable
    19 from cubicweb.common.uilib import soup2xhtml
    19 from cubicweb.common.uilib import soup2xhtml
    20 from cubicweb.common.selectors import (one_line_rset, score_entity_selector,
    20 from cubicweb.common.selectors import (one_line_rset, score_entity_selector,
    21                                     match_search_state, interface_selector)
    21                                     match_search_state, implement_interface)
    22 from cubicweb.common.view import NOINDEX, NOFOLLOW
    22 from cubicweb.common.view import NOINDEX, NOFOLLOW
    23 from cubicweb.web.controller import Controller
    23 from cubicweb.web.controller import Controller
    24 from cubicweb.web.action import Action
    24 from cubicweb.web.action import Action
    25 from cubicweb.web.views import basetemplates
    25 from cubicweb.web.views import basetemplates
    26 
    26 
    80     if the returned url match embeding configuration
    80     if the returned url match embeding configuration
    81     """
    81     """
    82     id = 'embed'
    82     id = 'embed'
    83     controller = 'embed'
    83     controller = 'embed'
    84     __selectors__ = (one_line_rset, match_search_state,
    84     __selectors__ = (one_line_rset, match_search_state,
    85                      interface_selector, score_entity_selector)
    85                      implement_interface, score_entity_selector)
    86     accepts_interfaces = (IEmbedable,)
    86     accepts_interfaces = (IEmbedable,)
    87     
    87     
    88     title = _('embed')
    88     title = _('embed')
    89         
    89         
    90     @classmethod
    90     @classmethod