web/views/embedding.py
branchtls-sprint
changeset 742 99115e029dca
parent 692 800592b8d39b
child 800 860451b72ab7
equal deleted inserted replaced
739:39721e56b56d 742:99115e029dca
    89 class EmbedAction(Action):
    89 class EmbedAction(Action):
    90     """display an 'embed' link on entity implementing `embeded_url` method
    90     """display an 'embed' link on entity implementing `embeded_url` method
    91     if the returned url match embeding configuration
    91     if the returned url match embeding configuration
    92     """
    92     """
    93     id = 'embed'
    93     id = 'embed'
    94     __selectors__ = (one_line_rset, match_search_state('normal'),
    94     __select__ = (one_line_rset() & match_search_state('normal')
    95                      implements(IEmbedable),
    95                   & implements(IEmbedable) 
    96                      score_entity(entity_has_embedable_url))
    96                   & score_entity(entity_has_embedable_url))
    97     
    97     
    98     title = _('embed')
    98     title = _('embed')
    99     controller = 'embed'
    99     controller = 'embed'
   100     
   100     
   101     def url(self, row=0):
   101     def url(self, row=0):