Exemplo n.º 1
0
 def _reindex_endpoints(self, relation):
     trs = TicketRelationsSpecifics(self.env)
     ticket_indexer = TicketIndexer(self.env)
     for resource in map(ResourceIdSerializer.get_resource_by_id,
                         (relation.source, relation.destination)):
         if resource.realm == 'ticket':
             ticket = trs._create_ticket_by_full_id(resource)
             ticket_indexer._index_ticket(ticket)