Re: [python-win32] comObject set Null/None

2011-02-22 Thread Tim Golden
On 22/02/2011 5:07 PM, Jesse Kretschmer wrote: This is exactly what I was looking for. I did a bit of searching and found the typical values for the first parameter: ADS_PROPERTY_CLEAR = 1 ADS_PROPERTY_UPDATE = 2 ADS_PROPERTY_APPEND = 3 ADS_PROPERTY_DELETE = 4 from: http://www.winvistatips.com/c

Re: [python-win32] comObject set Null/None

2011-02-22 Thread Jesse Kretschmer
> > > import active_directory as ad > > me = ad.find_user () > me.PutEx (1, "telephoneNumber", "IRRELEVANT") > > > > This should clear the telephoneNumber field; the first > param to PutEx is one of: Clear, Update, Append, Delete; > the second param is the field name; the third is usually > the v

Re: [python-win32] comObject set Null/None

2011-02-22 Thread Tim Golden
On 22/02/2011 06:11, Jesse Kretschmer wrote: i wish to unset a com object value. Specifically in active directory. I have been using Tim Golden's active_directory module to connect to a user object. I have tried setting the value to '', None, and even chr(0). I am at a loss. [For those fol