Update of /cvsroot/pywin32/pywin32/com/win32com/client
In directory sc8-pr-cvs1:/tmp/cvs-serv911
Modified Files:
genpy.py
Log Message:
Patch from Kenny Pitt - when looking for an interface member, compare the
"public" name of the member, as that is what we will be asking for
(ie, the raw name of "Exception" will become EXCEPTION)
Index: genpy.py
===================================================================
RCS file: /cvsroot/pywin32/pywin32/com/win32com/client/genpy.py,v
retrieving revision 1.34
retrieving revision 1.35
diff -C2 -d -r1.34 -r1.35
*** genpy.py 23 Oct 2003 07:19:15 -0000 1.34
--- genpy.py 23 Oct 2003 22:51:08 -0000 1.35
***************
*** 917,925 ****
if infotype == pythoncom.TKIND_COCLASS:
coClassItem, child_infos = self._Build_CoClass(type_info_tuple)
! found = doc[0]==child
if not found:
# OK, check the child interfaces
for info, info_type, refType, doc, refAttr, flags in child_infos:
! if doc[0] == child:
found = 1
break
--- 917,925 ----
if infotype == pythoncom.TKIND_COCLASS:
coClassItem, child_infos = self._Build_CoClass(type_info_tuple)
! found = build.MakePublicAttributeName(doc[0])==child
if not found:
# OK, check the child interfaces
for info, info_type, refType, doc, refAttr, flags in child_infos:
! if build.MakePublicAttributeName(doc[0]) == child:
found = 1
break
***************
*** 933,937 ****
info, infotype, doc, attr = type_info_tuple
if infotype in [pythoncom.TKIND_INTERFACE, pythoncom.TKIND_DISPATCH]:
! if doc[0]==child:
found = 1
oleItem, vtableItem = self._Build_Interface(type_info_tuple)
--- 933,937 ----
info, infotype, doc, attr = type_info_tuple
if infotype in [pythoncom.TKIND_INTERFACE, pythoncom.TKIND_DISPATCH]:
! if build.MakePublicAttributeName(doc[0]) == child:
found = 1
oleItem, vtableItem = self._Build_Interface(type_info_tuple)
|