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

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

Gets an existing post for editting.

Definition at line 1458 of file textRouter.py.

01458                                                  :
        """Gets an existing post for editting."""
        if not self.checkBloggerAccounts(3):
            return

        curBlogAccount = self.theBloggerAccounts[self.theCurrentBloggerAccount]
        
        # check logged in
        if (not curBlogAccount.checkSetupOK(0)):
            self.status(curBlogAccount.getErrorMessage())
            return 0
        
        result = dialog.textEntryDialog(self, 'Fetch Post:', 'Post ID', '')
        
        if not result.accepted:
            self.status("Post editing cancelled.")
        else:
            try:
                num = result.text
                self.showWaitMsg("Fetching post number '%s'..." % num)
                post = curBlogAccount.bloggerGetPost(num)
                if curBlogAccount.anErrorOccured():
                    self.status(curBlogAccount.getErrorMessage())
                    return
                curBlogAccount.currentPostId = post["postid"]
                self.updateTextBox(post["content"])
                self.status("Editing previous post, use 'Blogger->Update Post' to save you edits when done.")
                self.saveState()
            except ValueError, e:
                self.status("Error: Post ID must be a number.")


    def on_menuBloggerDeletePost_select(self, event):


Generated by  Doxygen 1.6.0   Back to index