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-e597b4017df7
remotes/tags/1.0.0-rc1
rey4 2006-03-01 12:28:09 +00:00
parent 0049b7fed9
commit c2e18ca589
1 changed files with 1 additions and 1 deletions

View File

@ -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: