Update of /cvsroot/pywin32/pywin32/com/win32comext/axscript/client
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv27304
Modified Files:
scriptdispatch.py
Log Message:
Check for newly added named items before handling a call on our IDispatch object.
Index: scriptdispatch.py
===================================================================
RCS file: /cvsroot/pywin32/pywin32/com/win32comext/axscript/client/scriptdispatch.py,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** scriptdispatch.py 11 Apr 2005 13:04:41 -0000 1.3
--- scriptdispatch.py 20 May 2005 23:27:54 -0000 1.4
***************
*** 30,33 ****
--- 30,36 ----
def _dynamic_(self, name, lcid, wFlags, args):
+ # Ensure any newly added items are available.
+ self.engine.RegisterNewNamedItems()
+ self.engine.ProcessNewNamedItemsConnections()
if wFlags & pythoncom.INVOKE_FUNC:
# attempt to call a function
|