l.s.w.servers : module documentation

Part of lp.services.webapp

Definition of the internet servers that Launchpad uses.
Class StepsToGo
>>> class FakeRequest:
Class ApplicationServerSettingRequestFactory Create a request and call its setApplicationServer method.
Class VirtualHostRequestPublicationFactory An IRequestPublicationFactory handling request to a Launchpad vhost.
Class XMLRPCRequestPublicationFactory A VirtualHostRequestPublicationFactory for XML-RPC.
Class WebServiceRequestPublicationFactory A VirtualHostRequestPublicationFactory for requests against
Class VHostWebServiceRequestPublicationFactory An IRequestPublicationFactory handling requests to vhosts.
Class NotFoundRequestPublicationFactory An IRequestPublicationFactory which always yields a 404.
Function get_query_string_params Return a dict of the decoded query string params for a request.
Function wsgi_native_string Make a native string suitable for use in WSGI.
Class LaunchpadBrowserRequestMixin Provides methods used for both API and web browser requests.
Class BasicLaunchpadRequest Mixin request class to provide stepstogo.
Class LaunchpadBrowserRequest Integration of launchpad mixin request classes to make an uber
Class BrowserFormNG Wrapper that provides IBrowserFormNG around a regular form dict.
Function web_service_request_to_browser_request Convert a given webservice request into a webapp one.
Class Zope3WidgetsUseIBrowserFormNGMonkeyPatch Make Zope3 widgets use IBrowserFormNG.
Class LaunchpadBrowserResponse No class docstring; 1/5 methods documented
Function adaptResponseToSession Adapt LaunchpadBrowserResponse to ISession
Function adaptRequestToResponse Adapt LaunchpadBrowserRequest to LaunchpadBrowserResponse
Class LaunchpadTestRequest Mock request for use in unit and functional tests.
Class LaunchpadTestResponse Mock response for use in unit and functional tests.
Class DebugLayerRequestFactory RequestFactory that sets the DebugLayer on a request.
Class LaunchpadAccessLogger No class docstring; 1/1 methods documented
Class MainLaunchpadPublication The publication used for the main Launchpad site.
Class FeedsPublication The publication used for Launchpad feed requests.
Class FeedsBrowserRequest Request type for a launchpad feed.
Class TestOpenIDBrowserRequest Undocumented
Class TestOpenIDBrowserPublication Undocumented
Class WebServicePublication The publication used for Launchpad web service requests.
Class LaunchpadWebServiceRequestTraversal No class docstring; 1/1 methods documented
Class WebServiceClientRequest Request type for a resource published through the web service.
Class WebServiceTestRequest Test request for the webservice.
Class PublicXMLRPCPublication The publication used for public XML-RPC requests.
Class PublicXMLRPCRequest Request type for doing public XML-RPC in Launchpad.
Class PublicXMLRPCResponse Response type for doing public XML-RPC in Launchpad.
Class PrivateXMLRPCPublication The publication used for private XML-RPC requests.
Class PrivateXMLRPCRequest Request type for doing private XML-RPC in Launchpad.
Class ProtocolErrorRequest An HTTP request that happened to result in an HTTP error.
Class ProtocolErrorPublicationFactory This class publishes error messages in response to protocol errors.
Class ProtocolErrorPublication Publication used for requests that turn out to be protocol errors.
Class ProtocolErrorException An exception for requests that turn out to be protocol errors.
Function register_launchpad_request_publication_factories Register our factories with the Zope3 publisher.
def get_query_string_params(request):
Return a dict of the decoded query string params for a request.

The parameter values will be decoded as unicodes, exactly as BrowserRequest would do to build the request form.

Defined here so that it can be used in both BasicLaunchpadRequest and the LaunchpadTestRequest (which doesn't inherit from BasicLaunchpadRequest).

def wsgi_native_string(s):
Make a native string suitable for use in WSGI.

PEP 3333 requires environment variables to be native strings that contain only code points representable in ISO-8859-1. To support porting to Python 3 via an intermediate stage of Unicode literals in Python 2, we enforce this here.

def web_service_request_to_browser_request(webservice_request):
Convert a given webservice request into a webapp one.

Overrides 'SERVER_URL' to the 'mainsite', preserving headers and body. Encodes PATH_INFO because it is unconditionally decoded by zope.publisher.http.sane_environment.

def adaptResponseToSession(response):
Adapt LaunchpadBrowserResponse to ISession
def adaptRequestToResponse(request):
Adapt LaunchpadBrowserRequest to LaunchpadBrowserResponse
def register_launchpad_request_publication_factories():
Register our factories with the Zope3 publisher.

DEATH TO ZCML!

API Documentation for Launchpad, generated by pydoctor at 2018-10-23 00:00:11.