X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=PLC%2FMethods%2FAdmGetPersonKeys.py;h=946230a34efe66ce03055f595486ae7684c729fd;hb=2fbc54bb18d05d1c8972257a342c3ae162e83c6e;hp=515d39378ff039bd3bfde5ad492e8eca6b12c0c2;hpb=1f8c38dd1357c93e4be8d94456b7274a591d2db4;p=plcapi.git diff --git a/PLC/Methods/AdmGetPersonKeys.py b/PLC/Methods/AdmGetPersonKeys.py index 515d393..946230a 100644 --- a/PLC/Methods/AdmGetPersonKeys.py +++ b/PLC/Methods/AdmGetPersonKeys.py @@ -25,13 +25,13 @@ class AdmGetPersonKeys(GetKeys): returns = [Key.fields] - def call(auth, person_id_or_email): + def call(self, auth, person_id_or_email): # Get account information persons = Persons(self.api, [person_id_or_email]) if not persons: raise PLCInvalidArgument, "No such account" - person = persons.values()[0] + person = persons[0] if 'admin' not in self.caller['roles']: if self.caller['person_id'] != person['person_id']: