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:
Kevin McCarthy committed 2007-08-20 10:50:11 -07:00
1 parent 5f0f192ae3
commit 66d3f1e730
5 files changed
+65 -55

No files matched your search

+3 -5
View File
@@ -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):