diff 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
line wrap: on
line diff
--- a/sat/plugins/plugin_misc_email_invitation.py	Tue Apr 14 20:29:37 2020 +0200
+++ b/sat/plugins/plugin_misc_email_invitation.py	Tue Apr 14 20:36:24 2020 +0200
@@ -401,7 +401,7 @@
             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}