From aff8526552b870d940638b9b014b65ec1c3c2222 Mon Sep 17 00:00:00 2001 From: Hiroshi Miura Date: Fri, 6 May 2016 22:16:51 +0900 Subject: [PATCH 1/4] Fix DBusException error fixed #448 Signed-off-by: Hiroshi Miura --- everpad/provider/sync/agent.py | 1 + 1 file changed, 1 insertion(+) diff --git a/everpad/provider/sync/agent.py b/everpad/provider/sync/agent.py index 6a9b2c9..2e5f0e6 100644 --- a/everpad/provider/sync/agent.py +++ b/everpad/provider/sync/agent.py @@ -15,6 +15,7 @@ class SyncThread(QtCore.QThread): force_sync_signal = QtCore.Signal() sync_state_changed = QtCore.Signal(int) data_changed = QtCore.Signal() + status = const.STATUS_NONE def __init__(self, *args, **kwargs): """Init default values""" From eae2b80290e1e20b32ec20b6d3af6d48141abee0 Mon Sep 17 00:00:00 2001 From: Martin Wilck Date: Tue, 28 Jun 2016 21:20:03 +0200 Subject: [PATCH 2/4] everpad-provider: Fix Attribute errors in SyncThread The following error may happen during authorization: AttributeError: 'SyncThread' object has no attribute 'status' --- everpad/provider/sync/agent.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/everpad/provider/sync/agent.py b/everpad/provider/sync/agent.py index 2e5f0e6..fecae60 100644 --- a/everpad/provider/sync/agent.py +++ b/everpad/provider/sync/agent.py @@ -23,6 +23,8 @@ def __init__(self, *args, **kwargs): self.app = AppClass.instance() self._init_timer() self._init_locks() + self.status = const.STATUS_NONE + self.sync_state = None def _init_sync(self): """Init sync""" From 9e9b76bf1a200aae84e893545a6fc17dfa57d5b7 Mon Sep 17 00:00:00 2001 From: Hiroshi Miura Date: Wed, 13 Jul 2016 15:23:05 +0900 Subject: [PATCH 3/4] Remove duplicated initialization - also set it NONE before init called. Signed-off-by: Hiroshi Miura --- everpad/provider/sync/agent.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/everpad/provider/sync/agent.py b/everpad/provider/sync/agent.py index fecae60..b7e6826 100644 --- a/everpad/provider/sync/agent.py +++ b/everpad/provider/sync/agent.py @@ -16,6 +16,7 @@ class SyncThread(QtCore.QThread): sync_state_changed = QtCore.Signal(int) data_changed = QtCore.Signal() status = const.STATUS_NONE + sync_state = None def __init__(self, *args, **kwargs): """Init default values""" @@ -23,8 +24,6 @@ def __init__(self, *args, **kwargs): self.app = AppClass.instance() self._init_timer() self._init_locks() - self.status = const.STATUS_NONE - self.sync_state = None def _init_sync(self): """Init sync""" From 64909b3961df072bc0caf999cf233265373d04af Mon Sep 17 00:00:00 2001 From: Hiroshi Miura Date: Thu, 14 Jul 2016 22:00:46 +0900 Subject: [PATCH 4/4] Fix AttributeError Fix following error happen when starting apps. AttributeError: 'SyncThread' object has no attribute 'last_sync' Signed-off-by: Hiroshi Miura --- everpad/provider/sync/agent.py | 1 + 1 file changed, 1 insertion(+) diff --git a/everpad/provider/sync/agent.py b/everpad/provider/sync/agent.py index b7e6826..c182616 100644 --- a/everpad/provider/sync/agent.py +++ b/everpad/provider/sync/agent.py @@ -17,6 +17,7 @@ class SyncThread(QtCore.QThread): data_changed = QtCore.Signal() status = const.STATUS_NONE sync_state = None + last_sync = None def __init__(self, *args, **kwargs): """Init default values"""