comparison sat/plugins/plugin_misc_email_invitation.py @ 3253:1af840e84af7

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
author Goffi <goffi@goffi.org>
date Tue, 14 Apr 2020 20:36:24 +0200
parents 559a625a236b
children 44a9438d6608
comparison
equal deleted inserted replaced
3252:54934ee3f69c 3253:1af840e84af7
399 399
400 @param profile(unicode): return invitation linked to this profile only 400 @param profile(unicode): return invitation linked to this profile only
401 C.PROF_KEY_NONE: don't filter invitations 401 C.PROF_KEY_NONE: don't filter invitations
402 @return list(unicode): invitations uids 402 @return list(unicode): invitations uids
403 """ 403 """
404 invitations = yield self.invitations.items() 404 invitations = yield self.invitations.all()
405 if profile != C.PROF_KEY_NONE: 405 if profile != C.PROF_KEY_NONE:
406 invitations = {id_:data for id_, data in invitations.items() 406 invitations = {id_:data for id_, data in invitations.items()
407 if data.get('profile') == profile} 407 if data.get('profile') == profile}
408 408
409 defer.returnValue(invitations) 409 defer.returnValue(invitations)