Lines Matching defs:cherrypy

26 import cherrypy
375 self.setup(cherrypy.request)
382 accept_lang = self.get_accept_lang(cherrypy.request, depot)
383 cherrypy.request.path_info = "/{0}".format(accept_lang)
387 base = pkg.server.api.BaseInterface(cherrypy.request, depot,
397 repo_url = "{0}/{1}".format(cherrypy.request.base,
404 cherrypy.request.base, repo_prefix,
408 # Starting in CherryPy 3.2, cherrypy.response.body only allows
421 self.setup(cherrypy.request)
432 cherrypy.request.path_info = "/".join(
447 raise cherrypy.NotFound()
461 cherrypy.request.path_info = re.sub("^/{0}".format(repo_prefix),
462 "", cherrypy.request.path_info)
464 accept_lang = self.get_accept_lang(cherrypy.request,
466 path = cherrypy.request.path_info.rstrip("/").lstrip("/")
475 cherrypy.request.path_info = "/".join(toks)
481 raise cherrypy.HTTPRedirect(
485 raise cherrypy.HTTPRedirect(
489 resp = face.respond(depot_bui, cherrypy.request,
490 cherrypy.response, pub, http_depot=repo_prefix)
501 self.setup(cherrypy.request)
502 rel_uri = cherrypy.request.path_info
516 raise cherrypy.HTTPRedirect(redir)
520 self.setup(cherrypy.request)
521 headers = cherrypy.response.headers
524 toks = cherrypy.request.path_info.lstrip("/").split("/")
527 raise cherrypy.NotFound()
579 headers = cherrypy.response.headers
586 toks = cherrypy.request.path_info.lstrip("/").split("/")
603 self.setup(cherrypy.request)
604 request = cherrypy.request
621 raise cherrypy.NotFound()
626 raise cherrypy.NotFound()
630 raise cherrypy.NotFound()
658 raise cherrypy.HTTPError(
677 self.setup(cherrypy.request)
704 response = cherrypy.response
717 error = cherrypy._cperror._HTTPErrorTemplate % \
721 "version": cherrypy.__version__}
723 cherrypy.request.path_info))
727 error = cherrypy._cperror._HTTPErrorTemplate % \
729 "traceback": "", "version": cherrypy.__version__}
733 request = cherrypy.request
744 from cherrypy.lib.httputil import parse_query_string
754 cherrypy.response.stream = True
755 cherrypy.response.body = self.app.search_1(
758 cherrypy.response.body = self.app.manifest(
761 cherrypy.response.body = self.app.info(*toks,
764 cherrypy.response.body = self.app.p5i(*toks,
767 cherrypy.response.body = self.app.admin(*toks,
775 cherrypy.response.body = self.app.repo_index(
778 cherrypy.response.body = self.app.default(*toks,
781 cherrypy.response.body = self.app.default(*toks,
784 if isinstance(e, cherrypy.HTTPRedirect):
786 elif isinstance(e, cherrypy.HTTPError):
789 raise cherrypy.HTTPError(e.http_status,
793 raise cherrypy.HTTPError(e.http_status,
796 raise cherrypy.HTTPError(e.http_status,
803 raise cherrypy.HTTPError(
812 application = cherrypy.Application(wsgi_depot, None, config=conf)