This commit is contained in:
Alfa
2017-07-28 19:37:39 -04:00
parent 60e4685ce8
commit 3cc42f282f
1046 changed files with 162392 additions and 9 deletions
+15
View File
@@ -0,0 +1,15 @@
# -*- coding: utf-8 -*-
class ResumeData(object):
def __init__(self, client):
self.data = None
self.failed = False
client._dispatcher.add_listener(self._process_alert)
client._th.save_resume_data()
def _process_alert(self, t, alert):
if t == 'save_resume_data_failed_alert':
self.failed = True
elif t == 'save_resume_data_alert':
self.data = alert.resume_data