l.c.x.codehosting : module documentation

Part of lp.code.xmlrpc

Implementations of the XML-RPC APIs for codehosting.
Function datetime_from_tuple Create a datetime from a sequence that quacks like time.struct_time.
Function run_with_login Run 'function' logged in with 'login_id'.
Class CodehostingAPI See ICodehostingAPI.
def datetime_from_tuple(time_tuple):
Create a datetime from a sequence that quacks like time.struct_time.

The tm_isdst is (index 8) is ignored. The created datetime uses tzinfo=UTC.

def run_with_login(login_id, function, *args, **kwargs):
Run 'function' logged in with 'login_id'.

The first argument passed to 'function' will be the Launchpad Person object corresponding to 'login_id'.

The exception is when the requesting login ID is LAUNCHPAD_SERVICES. In that case, we'll pass through the LAUNCHPAD_SERVICES variable and the method will do whatever security proxy hackery is required to provide read privileges to the Launchpad services.

API Documentation for Launchpad, generated by pydoctor at 2022-06-16 00:00:12.