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

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

Posts text as a new story.

Definition at line 995 of file textRouter.py.

00995                                                      :
        """Posts text as a new story."""
        if not self.checkManilaAccounts(3):
            return

        self.showWaitMsg("Posting text as story...")
        
        curManilaAccount = self.theManilaAccounts[self.theCurrentManilaAccount]

        if not curManilaAccount.checkSetupOK():
            self.status(curManilaAccount.getErrorMessage())
            return

        msg = curManilaAccount.manilaCreateMsg(self.getSubjectText(),\
                                               self.getOutputText(), "text/x-outline-tabbed")
        if curManilaAccount.anErrorOccured():
            self.status("Error posting new story: %s" % curManilaAccount.getErrorMessage())
        else:
            #print "message:"
            #print msg
            curManilaAccount.manilaAddToStoriesList(msg)
            if curManilaAccount.anErrorOccured():
                self.status("Error posting new story: %s" % curManilaAccount.getErrorMessage())
            else:
                self.status("New story '%s' posted successfully. (msg num: %d)" % \
                            (self.getSubjectText(), int(msg["msgnum"])))
            

    def on_menuManilaSetStoryAsHP_select(self, event):


Generated by  Doxygen 1.6.0   Back to index