RE: Get all attributes of a com object

2006-04-28 Thread Tim Golden
[Stefan Schukat] | You can only build a proxy module if you have the typelibrary | information which not all programs provide, since it prohibits | changes in the interface the easy way. E.g., MFC application | will normally not provide a typelibrary but support dynamic | dispatch. Oh. Thanks.

Re: Get all attributes of a com object

2006-04-28 Thread eicwo01
Many thanks to all of you; I learned a lot and will come up next time hopefully with some less utopic project ... :-) Wolfgang -- http://mail.python.org/mailman/listinfo/python-list

RE: Get all attributes of a com object

2006-04-28 Thread Stefan Schukat
> -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On > Behalf Of Tim Golden > Sent: Friday, April 28, 2006 11:45 AM > To: python-list@python.org > Subject: RE: Get all attributes of a com object > > [snip] > > The only thing

RE: Get all attributes of a com object

2006-04-28 Thread Tim Golden
[bruno at modulix] | Duncan Booth wrote: | > That will show him the attributes of the Python wrapper | around the COM | > object, it won't show him the attributes of the underlying | COM object | > itself. | | I stand corrected - and shouldn't answer questions about MS technos :( In fact, i

Re: Get all attributes of a com object

2006-04-28 Thread bruno at modulix
Duncan Booth wrote: > bruno at modulix wrote: > > >>eicwo01 wrote: >> >>>Thanks for your tips. >>>But dir() and inspect did not really help. >> >>Really ? >> >>def dump(obj): >> for name in dir(obj): >> print getattr(obj, name) >> > > > That will show him the attributes of the Python wrapp

RE: Get all attributes of a com object

2006-04-28 Thread Stefan Schukat
classes. The properties you get with OBJ._prop_map_get_.keys(). Stefan > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On > Behalf Of bruno at modulix > Sent: Friday, April 28, 2006 10:29 AM > To: python-list@python.org > Subject: Re:

Re: Get all attributes of a com object

2006-04-28 Thread Duncan Booth
bruno at modulix wrote: > eicwo01 wrote: >> Thanks for your tips. >> But dir() and inspect did not really help. > > Really ? > > def dump(obj): > for name in dir(obj): > print getattr(obj, name) > That will show him the attributes of the Python wrapper around the COM object, it won't s

Re: Get all attributes of a com object

2006-04-28 Thread bruno at modulix
eicwo01 wrote: > Thanks for your tips. > But dir() and inspect did not really help. Really ? def dump(obj): for name in dir(obj): print getattr(obj, name) -- bruno desthuilliers python -c "print '@'.join(['.'.join([w[::-1] for w in p.split('.')]) for p in '[EMAIL PROTECTED]'.split('@')])

Re: Get all attributes of a com object

2006-04-28 Thread eicwo01
Thanks for your tips. But dir() and inspect did not really help. dir(): ['GetIDsOfNames', 'GetTypeInfo', 'GetTypeInfoCount', 'Invoke', 'InvokeTypes', 'QueryInterface', '_ApplyTypes_', '_FlagAsMethod', '_LazyAddAttr_', '_NewEnum', '_Release_', '__AttrToID__', '__LazyMap__', '__call__', '__cmp__', '

Re: Get all attributes of a com object

2006-04-27 Thread bruno at modulix
eicwo01 wrote: > Without to know the names, is it possible to dump all attributes of a > com object? > from win32com.adsi import * from module import * is Bad(tm) > objDom = ADsOpenObject("LDAP:/ ... > print ???"all attributes"??? of objDom Look at dir() and the inspect module. -- bruno dest