[Norman] subnodes are correctly browsed now

This commit is contained in:
Yann Leboulanger 2005-10-09 10:11:24 +00:00
parent f0deb4bc32
commit 6ff2bf8c53
2 changed files with 6 additions and 1 deletions

View File

@ -1758,8 +1758,10 @@ class Connection:
def request_agents(self, jid, node):
if self.connection:
self.to_be_sent.append(common.xmpp.Iq(to = jid, typ = 'get',
iq = common.xmpp.Iq(to = jid, typ = 'get',
queryNS = common.xmpp.NS_DISCO_ITEMS))
if node: iq.setQuerynode(node)
self.to_be_sent.append(iq)
def request_register_agent_info(self, agent):
if not self.connection:

View File

@ -2361,6 +2361,7 @@ _('Without a connection, you can not browse available services')).get_response()
def on_refresh_button_clicked(self, widget):
'''When refresh button is clicked: refresh list: clear and rerequest it'''
self.services_treeview.get_model().clear()
self.items_asked = []
jid = self.address_comboboxentry.child.get_text().decode('utf-8')
self.browse(jid)
@ -2369,6 +2370,7 @@ _('Without a connection, you can not browse available services')).get_response()
if self.address_comboboxentry.get_active() != -1:
# user selected one of the entries so do auto-visit
self.services_treeview.get_model().clear()
self.items_asked = []
server_address = self.address_comboboxentry.child.get_text().decode('utf-8')
self.browse(server_address)
@ -2468,6 +2470,7 @@ _('Without a connection, you can not browse available services')).get_response()
gajim.config.set('latest_disco_addresses',
' '.join(self.latest_addresses))
self.services_treeview.get_model().clear()
self.items_asked = []
self.browse(server_address)
self.plugin.save_config()