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

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

Edits settings for an existing Blogger account.

Definition at line 1768 of file textRouter.py.

01768                                                      :
        """Edits settings for an existing Blogger account."""
        if not self.checkBloggerAccounts(3):
            return

        curBlogAccount = self.theBloggerAccounts[self.theCurrentBloggerAccount]
        
        if "weblogsPing" in curBlogAccount.prefs:
            defWeblogsPing = curBlogAccount.prefs["weblogsPing"]
        else:
            defWeblogsPing = "Yes"

        inputDetails = [
                         ["rpcserver", self.strs["newBlgPrefs"]["rpcP"], \
                          self.strs["newBlgPrefs"]["rpcH"], \
                          curBlogAccount.prefs["rpcserver"], 1],

                         ["username", self.strs["newBlgPrefs"]["userP"], \
                          self.strs["newBlgPrefs"]["userH"], \
                          curBlogAccount.prefs["username"], 1],

                         ["password", self.strs["newBlgPrefs"]["passP"], \
                          self.strs["newBlgPrefs"]["passH"], 
                          curBlogAccount.prefs["password"], 3],

                         ["weblogsPing", self.strs["newBlgPrefs"]["bWelogsP"],
                          self.strs["newBlgPrefs"]["bWelogsH"],
                          defWeblogsPing , 4],

                         ]

        dlg = PreferencesDialog(self, "Blogger Account Settings", inputDetails)

        dlg.showModal()
        if dlg.accepted():
            curBlogAccount.setPrefs(dlg.components.rpcserver.text, \
                                    dlg.components.username.text, \
                                    dlg.components.password.text, \
                                    dlg.components.weblogsPing.stringSelection)

            self.status("Settings for Blogger account '%s' updated." %
                        curBlogAccount.prefs["username"])
        else:
            self.status("Cancelled.")

        dlg.destroy()


    def on_menuBloggerChooseActiveAccount_select(self, event):


Generated by  Doxygen 1.6.0   Back to index