| 430 | | self.plugin.accounts[name] = {'name': login, 'hostname': hostname,\ |
| 431 | | 'password': entryPass.get_text(), 'ressource': \ |
| 432 | | entryRessource.get_text(), 'priority' : prio, 'use_proxy': \ |
| 433 | | useProxy, 'proxyhost': entryProxyhost.get_text(), 'proxyport': \ |
| 434 | | proxyPort} |
| 435 | | self.plugin.send('CONFIG', None, ('accounts', self.plugin.accounts)) |
| 436 | | #refresh accounts window |
| 437 | | if self.plugin.windows.has_key('accounts'): |
| 438 | | self.plugin.windows['accounts'].init_accounts() |
| 439 | | #refresh roster |
| 440 | | self.plugin.roster.draw_roster() |
| 441 | | widget.get_toplevel().destroy() |
| 442 | | return |
| | 429 | self.plugin.accounts[name] = {'name': login, 'hostname': hostname,\ |
| | 430 | 'password': entryPass.get_text(), 'ressource': \ |
| | 431 | entryRessource.get_text(), 'priority' : prio, 'use_proxy': \ |
| | 432 | useProxy, 'proxyhost': entryProxyhost.get_text(), 'proxyport': \ |
| | 433 | proxyPort} |
| | 434 | self.plugin.send('CONFIG', None, ('accounts', self.plugin.accounts)) |
| | 435 | #refresh accounts window |
| | 436 | if self.plugin.windows.has_key('accounts'): |
| | 437 | self.plugin.windows['accounts'].init_accounts() |
| | 438 | #refresh roster |
| | 439 | self.plugin.roster.draw_roster() |
| | 440 | widget.get_toplevel().destroy() |
| | 441 | return |