Update of /cvsroot/pywin32/pywin32/com/win32com/server
In directory sc8-pr-cvs1:/tmp/cvs-serv25311
Modified Files:
util.py
Log Message:
Allow 'useDispatcher' param to be 1(True) or 0(False), to mean 'use the
default debug dispatcher' - much more convenient than passing the
exact same class every time
Index: util.py
===================================================================
RCS file: /cvsroot/pywin32/pywin32/com/win32com/server/util.py,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** util.py 6 Dec 1999 00:34:39 -0000 1.2
--- util.py 8 Nov 2003 00:37:32 -0000 1.3
***************
*** 15,21 ****
"""
! if usePolicy is None:
usePolicy = policy.DefaultPolicy
! if useDispatcher is None:
ob = usePolicy(ob)
else:
--- 15,24 ----
"""
! if usePolicy is None:
usePolicy = policy.DefaultPolicy
! if useDispatcher == 1: # True will also work here.
! import win32com.server.dispatcher
! useDispatcher = win32com.server.dispatcher.DefaultDebugDispatcher
! if useDispatcher is None or useDispatcher==0:
ob = usePolicy(ob)
else:
|