code: def ping_entry(self, entry):
          
          entry_url = '%s%s' % (self.ressources.site_url,
                                entry.get_absolute_url())
          categories = '|'.join([c.title for c in entry.categories.all()])
  
          try:
              reply = self.server.weblogUpdates.extendedPing(
                  self.ressources.current_site.name,
                  self.ressources.blog_url, entry_url,
                  self.ressources.blog_feed, categories)
          except Exception:
              try:
                  reply = self.server.weblogUpdates.ping(
                      self.ressources.current_site.name,
                      self.ressources.blog_url, entry_url,
                      categories)
              except Exception:
                  reply = {'message': '%s is an invalid directory.' %
                           self.server_name,
                           'flerror': True}
          return reply
docs: Ping an entry to a directory.