Re: [python-win32] IADsContainer.GetObject returns objects of different type than IADsContainer.Create

2009-08-04 Thread Arve Knudsen
To exemplify, when I try to call PutEx on PyIADs at 0x0264A260 with obj at 0x003C1EB8, which was obtained by calling QueryInterface(IID_IADs) on an object returned from IADsContainer.GetObject, I get an AttributeError: 'PyIADs' object has no attribute 'PutEx'. This correlates with the

Re: [python-win32] IADsContainer.GetObject returns objects of different type than IADsContainer.Create

2009-08-04 Thread Arve Knudsen
Looking at the implementation of PyIADs, I can see that the PutEx implementation is commented out. This just gets more and more mysterious, to me at least. Arve On Tue, Aug 4, 2009 at 9:56 AM, Arve Knudsen arve.knud...@gmail.com wrote: To exemplify, when I try to call PutEx on PyIADs at

[python-win32] IADsContainer.GetObject returns objects of different type than IADsContainer.Create

2009-08-03 Thread Arve Knudsen
Hello I am thoroughly confused by win32com.adsi at this point. Right now I am finding that IADsContainer.GetObject returns objects of a different type than IADsContainer.Create, that expose only a subset of the expected methods! For instance I have to set the members of a group, using the method

Re: [python-win32] IADsContainer.GetObject returns objects of different type than IADsContainer.Create

2009-08-03 Thread Tim Roberts
Arve Knudsen wrote: I am thoroughly confused by win32com.adsi at this point. Right now I am finding that IADsContainer.GetObject returns objects of a different type than IADsContainer.Create, that expose only a subset of the expected methods! How do you know? Are you using dir() to look at

Re: [python-win32] IADsContainer.GetObject returns objects of different type than IADsContainer.Create

2009-08-03 Thread Arve Knudsen
Well, for one the representations of the objects returned by the two methods are different and with one type I can access .PutEx but not with the other. Arve On 8/3/09, Tim Roberts t...@probo.com wrote: Arve Knudsen wrote: I am thoroughly confused by win32com.adsi at this point. Right now I