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

def bloggeraccount::BloggerAccount::bloggerSetTemplate (   self,
  type,
  text 
)

Sets a template for the current blog.

Definition at line 182 of file bloggeraccount.py.

00182                                             :
        """Sets a template for the current blog."""
        boolTrue = xmlrpclib.Boolean(1)
        
        if (not self.checkSetupOK()):
            return 0

        try:
            self.bloggerSite.blogger.setTemplate(self.settings["appkey"], \
                                                 self.blogs[self.prefs["activeBlog"]-1]["blogid"],\
                                                 self.prefs["username"], \
                                                 self.getPassword(), \
                                                 text,
                                                 type)
            self.setErrorMessage("")
        except xmlrpclib.Fault, e:
            self.setErrorMessage("Error saving template: %s" % e.faultString)
            return 0

        return 1


    def bloggerGetPost(self, postid):


Generated by  Doxygen 1.6.0   Back to index