git://git.onelab.eu
/
plcapi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d016b01
)
- explicitly set new person['enabled'] field to False
author
Mark Huang
<mlhuang@cs.princeton.edu>
Tue, 16 Jan 2007 17:06:49 +0000
(17:06 +0000)
committer
Mark Huang
<mlhuang@cs.princeton.edu>
Tue, 16 Jan 2007 17:06:49 +0000
(17:06 +0000)
PLC/Methods/AddPerson.py
patch
|
blob
|
history
diff --git
a/PLC/Methods/AddPerson.py
b/PLC/Methods/AddPerson.py
index
ea9e84a
..
511040f
100644
(file)
--- a/
PLC/Methods/AddPerson.py
+++ b/
PLC/Methods/AddPerson.py
@@
-14,7
+14,7
@@
class AddPerson(Method):
used, otherwise defaults are used.
Accounts are disabled by default. To enable an account, use
-
SetPersonEnabled() or
UpdatePerson().
+ UpdatePerson().
Returns the new person_id (> 0) if successful, faults otherwise.
"""
@@
-33,6
+33,7
@@
class AddPerson(Method):
def call(self, auth, person_fields):
person_fields = dict(filter(can_update, person_fields.items()))
+ person_fields['enabled'] = False
person = Person(self.api, person_fields)
person.sync()