[pywin32-checkins] pywin32/isapi install.py,1.9,1.10
OLD project page for the Python extensions for Windows
Brought to you by:
mhammond
From: Mark H. <mha...@us...> - 2007-01-03 03:39:38
|
Update of /cvsroot/pywin32/pywin32/isapi In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv28375 Modified Files: install.py Log Message: Don't die at uninstall if the 'Filters' folder doesn't exist for a site Index: install.py =================================================================== RCS file: /cvsroot/pywin32/pywin32/isapi/install.py,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -d -r1.9 -r1.10 *** install.py 18 May 2006 08:32:35 -0000 1.9 --- install.py 3 Jan 2007 03:39:37 -0000 1.10 *************** *** 285,289 **** _CallHook(filterParams, "PreRemove", options) server = FindWebServer(options, filterParams.Server) ! filters = GetObject(server+"/Filters") try: filters.Delete(_IIS_FILTER, filterParams.Name) --- 285,296 ---- _CallHook(filterParams, "PreRemove", options) server = FindWebServer(options, filterParams.Server) ! ob_path = server+"/Filters" ! try: ! filters = GetObject(ob_path) ! except pythoncom.com_error, details: ! # failure to open the filters just means a totally clean IIS install ! # (IIS5 at least has no 'Filters' key when freshly installed). ! log(2, "ISAPI filter path '%s' did not exist." % (ob_path,)) ! return try: filters.Delete(_IIS_FILTER, filterParams.Name) |