Make vhost configuration work under mod_python. Patch by
Robert Spier <rspier@pobox.com> from the dev list. * bin/mod_python/viewcvs.py (index): load_config needs a sapi object to properly handle vhosts git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@1272 8cb11bc2-c004-0410-86c3-e597b4017df7remotes/tags/1.0.0-rc1
parent
0049b7fed9
commit
c2e18ca589
|
@ -47,10 +47,10 @@ import sapi
|
|||
import viewcvs
|
||||
reload(viewcvs) # need reload because initial import loads this stub file
|
||||
|
||||
cfg = viewcvs.load_config(CONF_PATHNAME)
|
||||
|
||||
def index(req):
|
||||
server = sapi.ModPythonServer(req)
|
||||
cfg = viewcvs.load_config(CONF_PATHNAME, server)
|
||||
try:
|
||||
viewcvs.main(server, cfg)
|
||||
finally:
|
||||
|
|
Loading…
Reference in New Issue