[python-win32] RE: Finding attributes of COM objects (was:
Translating vbs GetOb ject("LDAP://...") to Pyt hon?)
Tim Golden
tim.golden at viacom-outdoor.co.uk
Wed Nov 10 09:32:26 CET 2004
[R. Alan Monroe]
| > schema = GetObject (ad.Schema)
| > print schema.mandatoryProperties
| > print schema.optionalProperties
|
| I see what you're getting at, but I'm looking at the
| "PasswordLastChanged" property, which isn't part of the AD schema per
| se. It's a property of the in-memory object only. I want to see what
| other properties are available to me also.
This is always a slightly tricky one, I find. I hope that
Mark H or someone equally knowledgeable can pitch in. My
experience is that if you have done an EnsureDispatch on
a Dispatchable object (or have otherwise generated the
Python proxy module) then running the standard Python
help on the dispatched object's class will show the
methods in the usual way. eg,
<code>
import win32com.client
word = win32com.client.gencache.EnsureDispatch ("Word.Application")
help (word.__class__)
</code>
Other than that, I usually fall back on Googling in the way
I described and/or looking for other people's examples. I
don't believe there's any more official way than that.
TJG
________________________________________________________________________
This e-mail has been scanned for all viruses by Star. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk
________________________________________________________________________
More information about the Python-win32
mailing list