equal
deleted
inserted
replaced
15 from logilab.mtconverter import guess_encoding |
15 from logilab.mtconverter import guess_encoding |
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 (onelinerset_selector, score_entity_selector, |
20 from cubicweb.common.selectors import (one_line_rset, score_entity_selector, |
21 searchstate_selector, interface_selector) |
21 searchstate_selector, interface_selector) |
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 |
79 """display an 'embed' link on entity implementing `embeded_url` method |
79 """display an 'embed' link on entity implementing `embeded_url` method |
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__ = (onelinerset_selector, searchstate_selector, |
84 __selectors__ = (one_line_rset, searchstate_selector, |
85 interface_selector, score_entity_selector) |
85 interface_selector, score_entity_selector) |
86 accepts_interfaces = (IEmbedable,) |
86 accepts_interfaces = (IEmbedable,) |
87 |
87 |
88 title = _('embed') |
88 title = _('embed') |
89 |
89 |