Update of /cvsroot/pywin32/pywin32/com/win32com/client
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv29063
Modified Files:
__init__.py
Log Message:
Fix [ 1097153 ] DispatchWithEvents always rebuild makepy support
We were checking the instance for CLSID, but it is the class that has it.
Index: __init__.py
===================================================================
RCS file: /cvsroot/pywin32/pywin32/com/win32com/client/__init__.py,v
retrieving revision 1.32
retrieving revision 1.33
diff -C2 -d -r1.32 -r1.33
*** __init__.py 20 Jan 2004 01:54:33 -0000 1.32
--- __init__.py 4 Mar 2005 23:49:56 -0000 1.33
***************
*** 242,246 ****
# Create/Get the object.
disp = Dispatch(clsid)
! if not disp.__dict__.get("CLSID"): # Eeek - no makepy support - try and build it.
try:
ti = disp._oleobj_.GetTypeInfo()
--- 242,246 ----
# Create/Get the object.
disp = Dispatch(clsid)
! if not disp.__class__.__dict__.get("CLSID"): # Eeek - no makepy support - try and build it.
try:
ti = disp._oleobj_.GetTypeInfo()
***************
*** 294,298 ****
"""
disp = Dispatch(disp)
! if not disp.__dict__.get("CLSID"): # Eeek - no makepy support - try and build it.
try:
ti = disp._oleobj_.GetTypeInfo()
--- 294,298 ----
"""
disp = Dispatch(disp)
! if not disp.__class__.__dict__.get("CLSID"): # Eeek - no makepy support - try and build it.
try:
ti = disp._oleobj_.GetTypeInfo()
|