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

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

Defines a new Manila account settings.

Definition at line 1063 of file textRouter.py.

01063                                                    :
        """Defines a new Manila account settings."""

        inputDetails = [ ["siteurl", self.strs["newMnlPrefs"]["siteUrlP"], \
                          self.strs["newMnlPrefs"]["siteUrlH"], \
                          "", 1],

                         ["rpcserver", self.strs["newMnlPrefs"]["rpcP"], \
                          self.strs["newMnlPrefs"]["rpcH"], \
                          "", 1],

                         ["username", self.strs["newMnlPrefs"]["userP"], \
                          self.strs["newMnlPrefs"]["userH"], \
                          "", 1],

                         ["password", self.strs["newMnlPrefs"]["passP"], \
                          self.strs["newMnlPrefs"]["passH"], \
                          "", 3],

                         ["weblogOPML", self.strs["newMnlPrefs"]["opmlP"], \
                          self.strs["newMnlPrefs"]["opmlH"], \
                          "", 1],

                         ["usePostedLine", self.strs["newMnlPrefs"]["usePosP"], \
                          self.strs["newMnlPrefs"]["usePosH"], \
                          "No", 4],

                         ["postedLine", self.strs["newMnlPrefs"]["postedP"], \
                          self.strs["newMnlPrefs"]["postedH"], \
                          "posted at %I:%M %p", 1],

                         ]

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

        dlg.showModal()
        if dlg.accepted():
            if self.generalPrefs["useProxy"] == "Yes":
                proxy = self.generalPrefs["proxyServer"] + ":" + str(self.generalPrefs["proxyPort"])
            else:
                proxy = ""

            self.theManilaAccounts.append(ManilaAccount(proxy))
            
            self.theManilaAccounts[-1].setPrefs(dlg.components.siteurl.text, \
                                                dlg.components.rpcserver.text, \
                                                dlg.components.username.text, \
                                                dlg.components.password.text,
                                                dlg.components.weblogOPML.text, \
                                                dlg.components.usePostedLine.stringSelection, \
                                                dlg.components.postedLine.text, \
                                                )

            if len(self.theManilaAccounts) == 1:
                self.theCurrentManilaAccount = 0
            self.status("New manila account defined.")
        else:
            self.status("Cancelled.")

#        for site in self.theManilaAccounts:
#            dumpDataStruct(site.prefs)

        dlg.destroy()

    
    def on_menuManilaEditAccount_select(self, event):


Generated by  Doxygen 1.6.0   Back to index