[pywin32-checkins] pywin32/com/win32com/server register.py,1.15,1.16
OLD project page for the Python extensions for Windows
Brought to you by:
mhammond
|
From: <mha...@us...> - 2003-10-06 13:11:39
|
Update of /cvsroot/pywin32/pywin32/com/win32com/server
In directory sc8-pr-cvs1:/tmp/cvs-serv29725
Modified Files:
register.py
Log Message:
Most registration functions now take optional keyword arguments
'finalize_register' and 'finalize_unregister' - both functions which are
called at the end of the registration/unregistration process.
Index: register.py
===================================================================
RCS file: /cvsroot/pywin32/pywin32/com/win32com/server/register.py,v
retrieving revision 1.15
retrieving revision 1.16
diff -C2 -d -r1.15 -r1.16
*** register.py 26 Jul 2003 14:12:12 -0000 1.15
--- register.py 6 Oct 2003 13:11:36 -0000 1.16
***************
*** 413,416 ****
--- 413,419 ----
if not quiet:
print 'Registered type library:', tlb_filename
+ extra = flags.get('finalize_register')
+ if extra:
+ extra()
def UnregisterClasses(*classes, **flags):
***************
*** 440,443 ****
--- 443,450 ----
except pythoncom.com_error:
pass
+
+ extra = flags.get('finalize_unregister')
+ if extra:
+ extra()
#
# Unregister info is for installers or external uninstallers.
|