Embed origiginal values inside user, and have update_user pass in a user
object. Based on rcrit's original patch. Push scalar to list value conversion inside funcs.py.
This commit is contained in:
1 parent
5f0f192ae3
commit
66d3f1e730
5 files changed
+65
-55
No files matched your search
@@ -116,14 +116,12 @@ class IPAClient:
|
||||
|
||||
return users
|
||||
|
||||
def update_user(self,olduser,newuser):
|
||||
"""Update a user entry. olduser is a dict of attribute/value pairs
|
||||
of the original entry. newuser is a dict of attribute/value pairs
|
||||
of the new entry."""
|
||||
def update_user(self,user):
|
||||
"""Update a user entry."""
|
||||
|
||||
realm = config.config.get_realm()
|
||||
|
||||
result = self.transport.update_user(olduser,newuser)
|
||||
result = self.transport.update_user(user.origDataDict(), user.toDict())
|
||||
return result
|
||||
|
||||
def mark_user_deleted(self,uid):
|
||||
|
||||
Reference in new issue
Block a user