Fix some mino things about archiving preference window. see #5792
This commit is contained in:
parent
2c2e4201d7
commit
60d9b234a7
|
@ -701,6 +701,7 @@ class ConnectionVcard:
|
|||
|
||||
elif self.awaiting_answers[id_][0] == ARCHIVING_COLLECTIONS_ARRIVED:
|
||||
# TODO
|
||||
print 'ARCHIVING_COLLECTIONS_ARRIVED'
|
||||
pass
|
||||
|
||||
elif self.awaiting_answers[id_][0] == ARCHIVING_COLLECTION_ARRIVED:
|
||||
|
|
|
@ -184,6 +184,8 @@ class ConnectionArchive:
|
|||
self.dispatch('ARCHIVING_CHANGED', ('itemremove',
|
||||
item.getAttr('jid')))
|
||||
|
||||
raise common.xmpp.NodeProcessed
|
||||
|
||||
def request_collections_list_page(self, with_='', start=None, end=None,
|
||||
after=None, max=30, exact_match=False):
|
||||
iq_ = common.xmpp.Iq('get')
|
||||
|
|
|
@ -315,7 +315,8 @@ class EncryptedStanzaSession(ArchivingStanzaSession):
|
|||
"""
|
||||
|
||||
def __init__(self, conn, jid, thread_id, type_='chat'):
|
||||
StanzaSession.__init__(self, conn, jid, thread_id, type_='chat')
|
||||
ArchivingStanzaSession.__init__(self, conn, jid, thread_id,
|
||||
type_='chat')
|
||||
|
||||
self.xes = {}
|
||||
self.es = {}
|
||||
|
|
|
@ -3394,7 +3394,6 @@ class ItemArchivingPreferencesWindow:
|
|||
self.item_config = gajim.connections[self.account].items[self.item]
|
||||
else:
|
||||
self.item_config = gajim.connections[self.account].default
|
||||
print self.item, self.item_config
|
||||
self.waiting = None
|
||||
|
||||
# Connect to gtk builder
|
||||
|
@ -3620,7 +3619,6 @@ class ArchivingPreferencesWindow:
|
|||
|
||||
def on_edit_item_button_clicked(self, widget):
|
||||
if not self.current_item:
|
||||
print 'there is no current item'
|
||||
return
|
||||
|
||||
key_name = 'edit_item_archiving_preferences_%s' % self.current_item
|
||||
|
@ -3726,7 +3724,6 @@ class ArchivingPreferencesWindow:
|
|||
print error
|
||||
|
||||
def on_close_button_clicked(self, widget):
|
||||
if not self.waiting:
|
||||
self.window.destroy()
|
||||
|
||||
def on_archiving_preferences_window_destroy(self, widget):
|
||||
|
|
Loading…
Reference in New Issue