[python-win32] win32com- Type mismatch on a string... Possiblehash key collision? (original) (raw)
Reedick, Andrew jr9445 at ATT.COM
Thu Jan 3 19:26:10 CET 2008
- Previous message: [python-win32] win32com- Type mismatch on a string... Possible hash key collision?
- Next message: [python-win32] Suggestions for a unicode build
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
-----Original Message----- From: python-win32-bounces at python.org [mailto:python-win32-_ _bounces at python.org] On Behalf Of Reedick, Andrew Sent: Thursday, January 03, 2008 10:09 AM To: Tim Roberts; Python-Win32 List Subject: Re: [python-win32] win32com- Type mismatch on a string... Possiblehash key collision?
Problem "solved." After mucking with makepy.py, it looks like Fields("table") was replaced with GetFields("table") and Fields is an IList. No idea if Python did this, if the Quality Center COM Documentation is wrong or out of date, and/or if Perl's COM is accurate or just magically does the right thing. twitch
# Result is of type IList
# The method GetFields is actually a property, but must be used
as a method to correctly pass the arguments def GetFields(self, TableName=''): """A list of all fields in the specified table.""" return self.ApplyTypes(2, 2, (9, 32), ((8, 49),), 'GetFields', '{F73CCC7B-05FA-4FD7-8FAA-B53DFFFE22DC}',TableName )
_prop_map_get_ = {
# Method 'Fields' returns object of type 'IList'
"Fields": (2, 2, (9, 32), ((8, 49),), "Fields",
'{F73CCC7B-05FA-4FD7-8FAA-B53DFFFE22DC}'), } prop_map_put = { }
The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential, proprietary, and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the material from all computers. GA621
- Previous message: [python-win32] win32com- Type mismatch on a string... Possible hash key collision?
- Next message: [python-win32] Suggestions for a unicode build
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]