Convert add_user to take a user instead of a dict.

This commit is contained in:
Kevin McCarthy
2007-08-20 12:10:50 -07:00
parent c113d932b1
commit cb03961ff1
4 changed files with 32 additions and 28 deletions

View File

@@ -25,7 +25,7 @@ class User:
data - cidict - case insensitive dict of the attributes and values
orig_data - cidict - case insentiive dict of the original attributes and values"""
def __init__(self,entrydata):
def __init__(self,entrydata=None):
"""data is the raw data returned from the python-ldap result method,
which is a search result entry or a reference or None.
If creating a new empty entry, data is the string DN."""