core (memory/persistent): fixed "items", added "all" + "adel" to LazyPersistentBinaryDict:

- `items` was returning the dict with all values, it now returns a Deferred with actual dict items()
- `all` new method does return the dict with all values (in a Deferred)
- `adel` has been added to LazyPersistentBinaryDict
This commit is contained in:
Goffi 2020-04-14 20:36:24 +02:00
commit 68a4d8ea98

View file

@ -401,7 +401,7 @@ class InvitationsPlugin(object):
C.PROF_KEY_NONE: don't filter invitations
@return list(unicode): invitations uids
"""
invitations = yield self.invitations.items()
invitations = yield self.invitations.all()
if profile != C.PROF_KEY_NONE:
invitations = {id_:data for id_, data in invitations.items()
if data.get('profile') == profile}