Beispiel #1
0
 def _pingback(self):
     if settings.DEBUG:
         return None
     language = 'en' if self.text_en else None
     pingdjack.ping_external_urls(
         utils.absolute_url(self.get_absolute_url(language)),
         self.html(language),
         utils.absolute_url(utils.iurl(reverse('marcus-index'), language)))
Beispiel #2
0
 def ping_external_urls(self):
     '''
     Пингование внешних ссылок через Pingback
     (http://www.hixie.ch/specs/pingback/pingback)
     '''
     index_url = utils.absolute_url(reverse('cicero_index'))
     source_url = utils.absolute_url(reverse('cicero.views.topic', args=(self.topic.forum.slug, self.topic.id)))
     pingdjack.ping_external_urls(source_url, self.html(), index_url)
Beispiel #3
0
 def _pingback(self):
     if settings.DEBUG:
         return None
     language = 'en' if self.text_en else None
     pingdjack.ping_external_urls(
         utils.absolute_url(self.get_absolute_url(language)),
         self.html(language),
         utils.absolute_url(utils.iurl(reverse('marcus-index'), language))
     )
Beispiel #4
0
 def ping_external_urls(self):
     '''
     Пингование внешних ссылок через Pingback
     (http://www.hixie.ch/specs/pingback/pingback)
     '''
     index_url = utils.absolute_url(reverse('cicero_index'))
     source_url = utils.absolute_url(
         reverse('cicero.views.topic',
                 args=(self.topic.forum.slug, self.topic.id)))
     pingdjack.ping_external_urls(source_url, self.html(), index_url)