jp: jp asyncio port:
/!\ this commit is huge. Jp is temporarily not working with `dbus` bridge /!\ This patch implements the port of jp to asyncio, so it is now correctly using the bridge asynchronously, and it can be used with bridges like `pb`. This also simplify the code, notably for things which were previously implemented with many callbacks (like pagination with RSM). During the process, some behaviours have been modified/fixed, in jp and backends, check diff for details.
This commit is contained in:
parent
5cee4fbab7
commit
76aadbb3fb
3 changed files with 3299 additions and 3300 deletions
|
|
@ -334,6 +334,7 @@ class Const(object):
|
|||
|
||||
## Progress error special values ##
|
||||
PROGRESS_ERROR_DECLINED = "declined" # session has been declined by peer user
|
||||
PROGRESS_ERROR_FAILED = "failed" # something went wrong with the session
|
||||
|
||||
## Files ##
|
||||
FILE_TYPE_DIRECTORY = "directory"
|
||||
|
|
|
|||
|
|
@ -260,7 +260,7 @@ class SAT(service.Service):
|
|||
)
|
||||
self._unimport_plugin(plugin_path)
|
||||
continue
|
||||
except Exception as e:
|
||||
except Exception:
|
||||
import traceback
|
||||
|
||||
log.error(
|
||||
|
|
|
|||
|
|
@ -86,11 +86,11 @@ class SatXMPPEntity(object):
|
|||
self.actions = {} # used to keep track of actions for retrieval (key = action_id)
|
||||
self.encryption = encryption.EncryptionHandler(self)
|
||||
|
||||
def __unicode__(self):
|
||||
return "Client instance for profile {profile}".format(profile=self.profile)
|
||||
|
||||
def __str__(self):
|
||||
return self.__unicode__.encode('utf-8')
|
||||
return f"Client for profile {self.profile}"
|
||||
|
||||
def __repr__(self):
|
||||
return f"{super().__repr__()} - profile: {self.profile!r}"
|
||||
|
||||
## initialisation ##
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue