comparison src/stdui/ui_contact_list.py @ 2263:90189f312fd3

core (stdui): added a FIXME to not use plugin/default_host in the future
author Goffi <goffi@goffi.org>
date Wed, 21 Jun 2017 19:47:38 +0200
parents c2fdee1bd908
children 8b37a62336c3
comparison
equal deleted inserted replaced
2262:24f5a4d5f195 2263:90189f312fd3
35 35
36 host.importMenu((D_("Contacts"), D_("Add contact")), self._getAddDialogXMLUI, security_limit=2, help_string=D_("Add contact")) 36 host.importMenu((D_("Contacts"), D_("Add contact")), self._getAddDialogXMLUI, security_limit=2, help_string=D_("Add contact"))
37 host.importMenu((D_("Contacts"), D_("Update contact")), self._getUpdateDialogXMLUI, security_limit=2, help_string=D_("Update contact")) 37 host.importMenu((D_("Contacts"), D_("Update contact")), self._getUpdateDialogXMLUI, security_limit=2, help_string=D_("Update contact"))
38 host.importMenu((D_("Contacts"), D_("Remove contact")), self._getRemoveDialogXMLUI, security_limit=2, help_string=D_("Remove contact")) 38 host.importMenu((D_("Contacts"), D_("Remove contact")), self._getRemoveDialogXMLUI, security_limit=2, help_string=D_("Remove contact"))
39 39
40 # FIXME: a plugin should not be used here, and current profile's jid host would be better than installation wise host
40 if 'MISC-ACCOUNT' in self.host.plugins: 41 if 'MISC-ACCOUNT' in self.host.plugins:
41 self.default_host = self.host.plugins['MISC-ACCOUNT'].getNewAccountDomain() 42 self.default_host = self.host.plugins['MISC-ACCOUNT'].getNewAccountDomain()
42 else: 43 else:
43 self.default_host = 'example.net' 44 self.default_host = 'example.net'
44 45