X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=PLC%2FMethods%2FAddPersonKey.py;h=0bba3a107f5a35348b0ef6e2b01798de713146e1;hb=238d5594712b9d918636501e754a8f5816313e25;hp=0c3628466d67562652f3906be910302253b0a4dc;hpb=b0d2dea38d0136e256330b561ec1c6efd652f4dc;p=plcapi.git diff --git a/PLC/Methods/AddPersonKey.py b/PLC/Methods/AddPersonKey.py index 0c36284..0bba3a1 100644 --- a/PLC/Methods/AddPersonKey.py +++ b/PLC/Methods/AddPersonKey.py @@ -29,6 +29,8 @@ class AddPersonKey(Method): returns = Parameter(int, 'New key_id (> 0) if successful') + object_type = 'Person' + def call(self, auth, person_id_or_email, key_fields): key_fields = dict(filter(can_update, key_fields.items()))