def modpythonHandler(request):
 from mod_python import apache
 config_path = request.get_options().get('config', 'tilestache.cfg')
 config_path = realpath(pathjoin(dirname(request.filename), config_path))
 path_info = request.path_info
 query_string = request.args
 (mimetype, content) = requestHandler(config_path, path_info, query_string)
 request.status = apache.HTTP_OK
 request.content_type = mimetype
 request.set_content_length(len(content))
 request.send_http_header()
 request.write(content)
 return apache.OK

def modpythonHandler ( request ) : from mod_python import apache config_path = request . get_options ( ) . get ( 'config' , 'tilestache.cfg' ) config_path = realpath ( pathjoin ( dirname ( request . filename ) , config_path ) ) path_info = request . path_info query_string = request . args ( mimetype , content ) = requestHandler ( config_path , path_info , query_string ) request . status = apache . HTTP_OK request . content_type = mimetype request . set_content_length ( len ( content ) ) request . send_http_header ( ) request . write ( content ) return apache . OK
handle a mod_python request .