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

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

Gives the user a list of defined manila accounts so they can select the active one.

Definition at line 1195 of file textRouter.py.

01195                                                             :
        """Gives the user a list of defined manila accounts so they can select the active one."""
        if not self.checkManilaAccounts(1):
            return

        options = []
        for manilaSite in self.theManilaAccounts:
            options.append(manilaSite.prefs["siteurl"])

        defIndex = self.theCurrentManilaAccount
        if defIndex == -1:
            defIndex = 0
        default = options[ defIndex ]
        dlg = ChooserDialog(self, 'Choose Active Manila Account', \
                            "Choose which Manila account to set as active...", \
                            options, default)
        dlg.showModal()
        
        if not dlg.accepted():
            self.status("Manila account selection cancelled.")
        else:
            i = dlg.components.options.findString(dlg.components.options.stringSelection)
            if i == -1:
                self.status("No account selected for activation.")
            else:
                self.theCurrentManilaAccount = i
                self.status("Manila site number %d (%s) set as active." % (i + 1, options[i]))

        dlg.destroy()

    def on_menuManilaRemoveAccount_select(self, event):


Generated by  Doxygen 1.6.0   Back to index