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

def bloggeraccount::BloggerAccount::bloggerGetTemplate (   self,
  type = "main" 
)

Gets a template for the current blog.

Definition at line 160 of file bloggeraccount.py.

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

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

        return self.blogs[self.prefs["activeBlog"]-1]["template"]


    def bloggerSetTemplate(self, type, text):


Generated by  Doxygen 1.6.0   Back to index