Searched refs:request (Results 1 - 25 of 31) sorted by relevance

12

/pkg/src/util/apache2/depot/
H A Ddepot_index.py40 from six.moves.urllib.request import urlopen
79 def __init__(self, request, message):
80 self.request = request
85 return "{0}: {1}".format(self.message, self.request)
92 def __init__(self, request):
93 self.request = request
99 "Request was: {0}".format(self.request)
103 """An exception thrown when an admin request wa
[all...]
/pkg/src/modules/server/
H A Dface.py60 def feed(depot, request, response, pub):
67 return pkg.server.feed.handle(depot, request, response, pub)
69 def __render_template(depot, request, path, pub, http_depot=None):
71 base = api.BaseInterface(request, depot, pub)
87 def respond(depot, request, response, pub, http_depot=None):
91 path = request.path_info.strip("/")
105 # No publisher specified in request, so assume default.
116 return feed(depot, request, response, pub)
133 return __render_template(depot, request, path, pub, http_depot)
142 return __handle_error(request
[all...]
H A Ddepot.py149 cherrypy.request.path_info that returns the publisher used
150 for a given request.
298 for the current operation from the request path. Returns None
299 if a publisher prefix was not found in the request path. The
307 return self.request_pub_func(cherrypy.request.path_info)
309 req_pub = cherrypy.request.path_info.strip("/").split(
315 # Assume that if the first component of the request path
329 long from when the request was made the content returned
411 """Any request that is not explicitly mapped to the repository
426 request
[all...]
H A Dfeed.py139 def add_transaction(request, doc, feed, entry, first):
190 e_uri = misc.get_rel_path(request,
245 def update(request, depot, last, cf, pub):
301 add_transaction(request, d, feed, entry,
375 def handle(depot, request, response, pub):
396 update(request, depot, last, cf, pub)
H A Dapi.py58 def __init__(self, request, depot, pub):
62 # A protected reference to a cherrypy request object.
63 self._request = request
715 """This class presents an interface to server request objects that
731 """Returns uri relative to the current request path.
743 """A dict containing the parameters sent in the request, either
744 in the query string or in the request body.
758 request or None if not available.
770 return cherrypy.request.query_string
777 this returns (base url + script_name [+ request
[all...]
/pkg/src/modules/
H A Dsysattr.py130 request = ffi.new("nvlist_t **")
131 request[0] = ffi.gc(request[0], lib.nvlist_free)
133 if lib.nvlist_alloc(request, lib.NV_UNIQUE_NAME, 0) != 0:
162 if lib.nvlist_add_boolean_value(request[0], lib.attr_to_name(sys_attr),
170 if lib.fsetattr(fd, lib.XATTR_VIEW_READWRITE, request[0]):
H A Dpipeutils.py471 def request(self, host, handler, request_body, verbose=0): member in class:_PipedTransport
472 """Send a request to the server."""
476 # request to our parent class.
477 return rpc.Transport.request(self,
519 """Get a request from the client. Returns a tuple containing
520 the request and the client address (mirroring the return value
533 """Piped RPC request handler that uses HTTP encapsulation."""
536 """Prepare to handle a request."""
547 """Piped RPC request handler that doesn't use HTTP encapsulation."""
550 """Handle one client request
[all...]
H A Dp5i.py32 from six.moves.urllib.request import urlopen, pathname2url
H A Ddepotcontroller.py36 from six.moves.urllib.request import pathname2url, urlopen
306 Then make a little HTTP request to see if the depot is
H A Dmisc.py66 from six.moves.urllib.request import pathname2url, url2pathname
543 def get_rel_path(request, uri, pub=None):
544 """Calculate the depth of the current request path relative to our
548 rpath = request.path_info
/pkg/src/tests/cli/
H A Dt_publish_api.py34 from six.moves.urllib.request import pathname2url
H A Dt_util_merge.py43 from six.moves.urllib.request import url2pathname
H A Dt_depot_config.py43 from six.moves.urllib.request import urlopen
565 # check the first request to the BUI works as expected
H A Dt_sysrepo.py49 from six.moves.urllib.request import urlopen
H A Dt_pkg_depotd.py44 from six.moves.urllib.request import urlopen
1229 # Issue a bad request to trigger the server logging
H A Dt_pkg_search.py41 from six.moves.urllib.request import urlopen
/pkg/src/modules/client/transport/
H A Drepo.py40 from six.moves.urllib.request import url2pathname, pathname2url
61 """Perform a search request."""
237 url, and add a field that names the request. This request
242 # Error may have been raised before request path
248 e.request = os.path.basename(urlsplit(
253 # instead of trying to deduce the request's name.
259 e.request = mapping[e.url]
297 leaving just the information about the request."""
464 """Generate the request UR
[all...]
H A Dexception.py152 repourl=None, request=None, uuid=None, details=None, proxy=None):
159 self.request = request
H A Dtransport.py102 cache lookup request.
641 """Perform a search request. Returns a file-like object or an
763 """Get request header based on repository status and client
786 te.request = filename
908 # General case: Fish the request information
910 # can retry the request at another host.
911 req = getattr(e, "request", None)
951 failedreqs.append(e.request)
972 if x.request in failedreqs
1569 req = getattr(e, "request", Non
[all...]
/pkg/src/util/qual-simulator/
H A Ddepot.py175 def request(self, rc, size=None): member in class:RepositoryURI
176 """Simulate a transport request using RepoChooser 'rc'.
H A Dscenario.py100 req = r[1].request(rc)
/pkg/src/tests/api/
H A Dt_p5i.py46 from six.moves.urllib.request import pathname2url
H A Dt_pkg_api_install.py48 from six.moves.urllib.request import pathname2url
/pkg/src/util/log-scripts/
H A Dan_report.py39 from six.moves.urllib.request import urlopen
/pkg/src/
H A Dsysrepo.py46 from six.moves.urllib.request import build_opener, HTTPRedirectHandler

Completed in 72 milliseconds

12