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

def COREBlog2::content::coreblog2::COREBlog2::sendPing (   self,
  idx = -1 
)

Send ping to servers on setting.
If any idx served, only one ping will be sent.
If idx == -1, try to send all ping servers.

Definition at line 793 of file coreblog2.py.

00793                                :
        """
        Send ping to servers on setting.
        If any idx served, only one ping will be sent.
        If idx == -1, try to send all ping servers.
        """
        cbtool = getToolByName(self,'coreblog2_tool')
        blogurl = self.absolute_url()
        if self.getTrackback_base():
            blogurl = self.getTrackback_base()
        svs = self.getPing_servers().split('\n')
        indexlist = range(0,len(svs))
        if idx != -1:
            indexlist = [index]
        rl = []
        for i in indexlist:
            if svs[i].find('http:') == 0:
                r = cbtool.sendPing(svs[i],self.title,blogurl,
                                __product_version__)
                rl.append(r)
        return rl

    #
    # Misc methods


Generated by  Doxygen 1.6.0   Back to index