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

def textRouter::TextRouter::on_menuBloggerUpdatePost_select (   self,
  event 
)

Updates an existing post.  A Previous post much be fetched first.

Definition at line 1555 of file textRouter.py.

01555                                                     :
        """Updates an existing post.  A Previous post much be fetched first."""
        if not self.checkBloggerAccounts(3):
            return

        curBlogAccount = self.theBloggerAccounts[self.theCurrentBloggerAccount]

        if (not curBlogAccount.checkSetupOK(0)):
            self.status(curBlogAccount.getErrorMessage())
            return

        if curBlogAccount.currentPostId == -1:
            self.status("You must start editing a previous post before update it.")
            return

        self.showWaitMsg("Updating...")

        outputText = self.components.area1.text
        if self.utilitiesPrefs["expandShortcuts"] == "blogger" or \
           self.utilitiesPrefs["expandShortcuts"] == "all":
            outputText = self.shortcuts.applyTo(outputText)

        curBlogAccount.bloggerUpdatePost(outputText)
        if curBlogAccount.anErrorOccured():
            self.status(curBlogAccount.getErrorMessage())
            #print self.theBloggerAccount.getErrorMessage()
        else:
            self.status("Post updated successfully.")
        
            if self.generalPrefs["alwaysClear"] == 'Yes':
                self.components.area1.text = ""

                curBlogAccount.currentPostId = -1

                curBlogAccount.blogs[curBlogAccount.prefs["activeBlog"]-1]["previousPosts"] = []

                

    def on_menuBloggerGetTemplate_select(self, event):


Generated by  Doxygen 1.6.0   Back to index