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

def bloggeraccount::BloggerAccount::setActiveBlog (   self,

Sets the active blog

Definition at line 330 of file bloggeraccount.py.

00330                                        :
        """Sets the active blog"""
        # we need to check here that the given blog number is in range:
            activeBlog = int(activeBlog)
        except ValueError, e:
            self.setErrorMessage("Value entered must be a number.")
            return 0
        if activeBlog > len(self.blogs) or activeBlog < 1:
            self.setErrorMessage("Chosen blog number (%d) is out of range." % activeBlog)
            return 0

        self.prefs["activeBlog"] = activeBlog
        return 1

    def getActiveBlog(self):

Generated by  Doxygen 1.6.0   Back to index