Update of /cvsroot/pywin32/pywin32/com/win32com/client
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv32009
Modified Files:
dynamic.py
Log Message:
Fix [ 1587023 ] ActiveScript, LazyDispatchItem doesn't rename properties
Support 'Get' and 'Set' properties taking arguments with ITypeComp based
objects.
Index: dynamic.py
===================================================================
RCS file: /cvsroot/pywin32/pywin32/com/win32com/client/dynamic.py,v
retrieving revision 1.21
retrieving revision 1.22
diff -C2 -d -r1.21 -r1.22
*** dynamic.py 10 Jan 2006 00:51:15 -0000 1.21
--- dynamic.py 26 Aug 2007 03:42:13 -0000 1.22
***************
*** 378,381 ****
--- 378,385 ----
try:
x,t = typecomp.Bind(attr,i)
+ # Support 'Get' and 'Set' properties - see
+ # bug 1587023
+ if x==0 and attr[:3] in ('Set', 'Get'):
+ x,t = typecomp.Bind(attr[3:], i)
if x==1: #it's a FUNCDESC
r = olerepr._AddFunc_(typeinfo,t,0)
|