[pywin32-checkins] pywin32/pyisapi/isapi install.py,1.4,1.5
OLD project page for the Python extensions for Windows
Brought to you by:
mhammond
|
From: Mark H. <mha...@us...> - 2004-09-09 06:53:12
|
Update of /cvsroot/pywin32/pywin32/pyisapi/isapi In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv11400 Modified Files: install.py Log Message: Brand new websites may not already have a "Filters" collection - create it in that case. Index: install.py =================================================================== RCS file: /cvsroot/pywin32/pywin32/pyisapi/isapi/install.py,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** install.py 7 Sep 2004 02:20:43 -0000 1.4 --- install.py 9 Sep 2004 06:52:47 -0000 1.5 *************** *** 208,212 **** server = FindWebServer(options, filterParams.Server) _CallHook(filterParams, "PreInstall", options) ! filters = GetObject(server+"/Filters") try: newFilter = filters.Create(_IIS_FILTER, filterParams.Name) --- 208,223 ---- server = FindWebServer(options, filterParams.Server) _CallHook(filterParams, "PreInstall", options) ! try: ! filters = GetObject(server+"/Filters") ! except pythoncom.com_error, (hr, msg, exc, arg): ! # Brand new sites don't have the '/Filters' collection - create it. ! # Any errors other than 'not found' we shouldn't ignore. ! if winerror.HRESULT_FACILITY(hr) != winerror.FACILITY_WIN32 or \ ! winerror.HRESULT_CODE(hr) != winerror.ERROR_PATH_NOT_FOUND: ! raise ! server_ob = GetObject(server) ! filters = server_ob.Create(_IIS_FILTERS, "Filters") ! filters.FilterLoadOrder = "" ! filters.SetInfo() try: newFilter = filters.Create(_IIS_FILTER, filterParams.Name) |