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

Arve Knudsen arve.knudsen at gmail.com
Mon Aug 3 23:17:09 CEST 2009


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 <timr at probo.com> wrote:
> 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 the list of methods?
> That's not reliable with COM objects, unless you have used makepy on
> them.  The win32com stuff doesn't go query the complete list of methods
> and properties.  When you ask for one, it checks for it, and will
> remember that for later.
>
> --
> Tim Roberts, timr at probo.com
> Providenza & Boekelheide, Inc.
>
> _______________________________________________
> python-win32 mailing list
> python-win32 at python.org
> http://mail.python.org/mailman/listinfo/python-win32
>

-- 
Sent from my mobile device


More information about the python-win32 mailing list