示例#1
0
def index(req):
  server = sapi.ModPythonServer(req)
  cfg = viewvc.load_config(CONF_PATHNAME, server)
  try:
    viewvc.main(server, cfg)
  finally:
    server.close()
示例#2
0
# development, they will remain None.
#

LIBRARY_DIR = None
CONF_PATHNAME = None

#########################################################################
#
# Adjust sys.path to include our library directory
#

import sys

if LIBRARY_DIR:
    sys.path.insert(0, LIBRARY_DIR)

import sapi
import viewvc
import query
reload(query)  # need reload because initial import loads this stub file

cfg = viewvc.load_config(CONF_PATHNAME)


def index(req):
    server = sapi.ModPythonServer(req)
    try:
        query.main(server, cfg, "viewvc.py")
    finally:
        server.close()
示例#3
0
def handle_config(config_file):
    global cfg
    cfg = viewvc.load_config(config_file or CONF_PATHNAME)
示例#4
0
def handle_config():
  global cfg
  cfg = viewvc.load_config(CONF_PATHNAME)
示例#5
0
# development, they will remain None.
#

LIBRARY_DIR = None
CONF_PATHNAME = None

#########################################################################
#
# Adjust sys.path to include our library directory
#

import sys

if LIBRARY_DIR:
  sys.path.insert(0, LIBRARY_DIR)

import sapi
import viewvc
import query
reload(query) # need reload because initial import loads this stub file

cfg = viewvc.load_config(CONF_PATHNAME)

def index(req):
  server = sapi.ModPythonServer(req)
  try:
    query.main(server, cfg, "viewvc.py")
  finally:
    server.close()

示例#6
0
def handle_config(config_file):
  global cfg
  cfg = viewvc.load_config(config_file or CONF_PATHNAME)
示例#7
0
def application(environ, start_response):
  server = sapi.WsgiServer(environ, start_response)
  cfg = viewvc.load_config(CONF_PATHNAME, server)
  viewvc.main(server, cfg)
  return []
示例#8
0
def handle_config():
    global cfg
    cfg = viewvc.load_config(CONF_PATHNAME)