Logo Search packages:      
Sourcecode: pythoncard version File versions  Download package

def bloggeraccount::BloggerAccount::bloggerDeletePost (   self,
  index 
)

Deletes a post.

Definition at line 223 of file bloggeraccount.py.

00223                                       :
        """Deletes a post."""
        boolTrue = xmlrpclib.Boolean(1)
        postid = self.blogs[self.prefs["activeBlog"] - 1]["previousPosts"][index]["postid"]
        
        if (not self.checkSetupOK()):
            return 0

        try:
            self.bloggerSite.blogger.deletePost(self.settings["appkey"], \
                                                postid, \
                                                self.prefs["username"], \
                                                self.getPassword(), \
                                                boolTrue)

            self.blogs[self.prefs["activeBlog"]-1]["previousPosts"][index:index+1] = []
            self.setErrorMessage("")
        except xmlrpclib.Fault, e:
            self.setErrorMessage("Error deleting post: %s" % e.faultString)
            return 0

        return 1


    def bloggerUpdatePost(self, content):


Generated by  Doxygen 1.6.0   Back to index