I'm going to be writing a lot of ADSI scripts in python and I thought 
I'd wrap the IADsUser object. Right now, my custom user object "myUser", 
simply looks up the user in AD, does a GetObject() on it and the 
resulting IADsUser is a member of the class. So, if I want to get the 
name of the user in AD, I access it with "myUser.IADsUser.Name".

However, I'd really like to simply subclass IADsUser and add a few 
attributes of my own, so myUser.Name is actually pointing to the 
IADsUser object's name. I don't have the skills to do anything as 
dynamic as Tim Golden's WMI wrapper. How would I do this subclassing?

Thanks.


_______________________________________________
Python-win32 mailing list
Python-win32@python.org
http://mail.python.org/mailman/listinfo/python-win32

Reply via email to