split long lines
This commit is contained in:
parent
8d6a00297f
commit
67b574ba49
1 changed files with 19 additions and 16 deletions
15
src/disco.py
15
src/disco.py
|
@ -765,7 +765,8 @@ _('Without a connection, you can not browse available services'))
|
||||||
# We can't travel anywhere else.
|
# We can't travel anywhere else.
|
||||||
self.destroy()
|
self.destroy()
|
||||||
dialogs.ErrorDialog(_('The service could not be found'),
|
dialogs.ErrorDialog(_('The service could not be found'),
|
||||||
_('There is no service at the address you entered, or it is not responding. Check the address and try again.'))
|
_('There is no service at the address you entered, or it is not responding. '
|
||||||
|
'Check the address and try again.'))
|
||||||
return
|
return
|
||||||
klass = self.cache.get_browser(identities, features)
|
klass = self.cache.get_browser(identities, features)
|
||||||
if not klass:
|
if not klass:
|
||||||
|
@ -1881,8 +1882,7 @@ class MucBrowser(AgentBrowser):
|
||||||
|
|
||||||
for bookmark in gajim.connections[self.account].bookmarks:
|
for bookmark in gajim.connections[self.account].bookmarks:
|
||||||
if bookmark['jid'] == bm['jid']:
|
if bookmark['jid'] == bm['jid']:
|
||||||
dialogs.ErrorDialog(
|
dialogs.ErrorDialog( _('Bookmark already set'),
|
||||||
_('Bookmark already set'),
|
|
||||||
_('Group Chat "%s" is already in your bookmarks.') % bm['jid'])
|
_('Group Chat "%s" is already in your bookmarks.') % bm['jid'])
|
||||||
return
|
return
|
||||||
|
|
||||||
|
@ -2061,7 +2061,8 @@ class DiscussionGroupsBrowser(AgentBrowser):
|
||||||
self.subscribe_button = None
|
self.subscribe_button = None
|
||||||
self.unsubscribe_button = None
|
self.unsubscribe_button = None
|
||||||
|
|
||||||
gajim.connections[account].send_pb_subscription_query(jid, self._on_pep_subscriptions)
|
gajim.connections[account].send_pb_subscription_query(jid,
|
||||||
|
self._on_pep_subscriptions)
|
||||||
|
|
||||||
def _create_treemodel(self):
|
def _create_treemodel(self):
|
||||||
"""
|
"""
|
||||||
|
@ -2233,7 +2234,8 @@ class DiscussionGroupsBrowser(AgentBrowser):
|
||||||
|
|
||||||
groupnode = model.get_value(iter_, 1) # 1 = groupnode
|
groupnode = model.get_value(iter_, 1) # 1 = groupnode
|
||||||
|
|
||||||
gajim.connections[self.account].send_pb_subscribe(self.jid, groupnode, self._on_pep_subscribe, groupnode)
|
gajim.connections[self.account].send_pb_subscribe(self.jid, groupnode,
|
||||||
|
self._on_pep_subscribe, groupnode)
|
||||||
|
|
||||||
def on_unsubscribe_button_clicked(self, widget):
|
def on_unsubscribe_button_clicked(self, widget):
|
||||||
"""
|
"""
|
||||||
|
@ -2244,7 +2246,8 @@ class DiscussionGroupsBrowser(AgentBrowser):
|
||||||
|
|
||||||
groupnode = model.get_value(iter_, 1) # 1 = groupnode
|
groupnode = model.get_value(iter_, 1) # 1 = groupnode
|
||||||
|
|
||||||
gajim.connections[self.account].send_pb_unsubscribe(self.jid, groupnode, self._on_pep_unsubscribe, groupnode)
|
gajim.connections[self.account].send_pb_unsubscribe(self.jid, groupnode,
|
||||||
|
self._on_pep_unsubscribe, groupnode)
|
||||||
|
|
||||||
def _on_pep_subscriptions(self, conn, request):
|
def _on_pep_subscriptions(self, conn, request):
|
||||||
"""
|
"""
|
||||||
|
|
Loading…
Add table
Reference in a new issue