Logo Search packages:      
Sourcecode: zope-coreblog2 version File versions  Download package

def COREBlog2::COREBlogTool::COREBlog2Tool::sendPing (   self,
  serverurl,
  blogtitle,
  url,
  version_str = "COREBlog2",
  char_code = "utf-8",
  fromcode = "" 
)

   Send PING to PING server.

Definition at line 63 of file COREBlogTool.py.

                             :
        """
           Send PING to PING server.
        """
        #blogtitle = convert_charcode(blogtitle,char_code,fromcode)
        # Sotre timeout
        oldtimeout = socket.getdefaulttimeout()
        socket.setdefaulttimeout(timeout)

        svr = Server(serverurl)
        Transport.user_agent = version_str

        try:
            resp = svr.weblogUpdates.ping(blogtitle,url)
        except Exception, e:
            resp = {'error':str(e)}

        socket.setdefaulttimeout(oldtimeout)

        return resp

    security.declarePublic('sendTrackback')
    def sendTrackback(self,


Generated by  Doxygen 1.6.0   Back to index