from mod_python import apache from route import get_route def handler(req): req.log_error('handler') # req.content_type = 'text/plain' req.content_type = 'text/html' req.send_http_header() pr = get_route(req) if pr == '1': s_bs = '' s_tekko = '' elif pr == '2': s_bs = '' s_tekko = '' else: s_bs = '' s_tekko = '' s = """\
Провайдер по умолчанию:
""" % (s_bs, s_tekko) req.write(s) return apache.OK