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
1 changed files with 3299 additions and 3300 deletions
|
|
@ -241,12 +241,12 @@ class XEP_0048(object):
|
|||
except KeyError:
|
||||
pass
|
||||
|
||||
for url in urls_data:
|
||||
for url, url_data in urls_data.items():
|
||||
url_elt = storage_elt.addElement("url")
|
||||
url_elt[XEP_0048.URL_KEY] = url
|
||||
for attr in XEP_0048.URL_ATTRS:
|
||||
try:
|
||||
url_elt[attr] = url[attr]
|
||||
url_elt[attr] = url_data[attr]
|
||||
except KeyError:
|
||||
pass
|
||||
|
||||
|
|
@ -440,7 +440,10 @@ class XEP_0048(object):
|
|||
return ret
|
||||
data = bookmarks_ori[type_]
|
||||
for bookmark in data:
|
||||
ret[_storage_location][bookmark.full()] = data[bookmark].copy()
|
||||
if type_ == XEP_0048.MUC_TYPE:
|
||||
ret[_storage_location][bookmark.full()] = data[bookmark].copy()
|
||||
else:
|
||||
ret[_storage_location][bookmark] = data[bookmark].copy()
|
||||
return ret
|
||||
|
||||
for _storage_location in ("local", "private", "pubsub"):
|
||||
|
|
|
|||
Loading…
Reference in a new issue