git://git.onelab.eu
/
plcapi.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
====
[plcapi.git]
/
PLC
/
Methods
/
SetPersonPrimarySite.py
diff --git
a/PLC/Methods/SetPersonPrimarySite.py
b/PLC/Methods/SetPersonPrimarySite.py
index
86e96c9
..
644826b
100644
(file)
--- a/
PLC/Methods/SetPersonPrimarySite.py
+++ b/
PLC/Methods/SetPersonPrimarySite.py
@@
-25,6
+25,8
@@
class SetPersonPrimarySite(Method):
returns = Parameter(int, '1 if successful')
+ object_type = 'Person'
+
def call(self, auth, person_id_or_email, site_id_or_login_base):
# Get account information
persons = Persons(self.api, [person_id_or_email])