univention.portal.handlers package#

Submodules#

univention.portal.handlers.auth_handlers module#

class univention.portal.handlers.auth_handlers.LoginHandler(application: Application, request: HTTPServerRequest, **kwargs: Any)[source]#

Bases: PortalResource

async post(portal_name)[source]#
async get(portal_name)[source]#
class univention.portal.handlers.auth_handlers.LogoutHandler(application: Application, request: HTTPServerRequest, **kwargs: Any)[source]#

Bases: PortalResource

async get(portal_name)[source]#

univention.portal.handlers.navigation_handler module#

class univention.portal.handlers.navigation_handler.NavigationHandler(application: Application, request: HTTPServerRequest, **kwargs: Any)[source]#

Bases: PortalResource

async get(portal_name)[source]#

univention.portal.handlers.portal_entries_handler module#

class univention.portal.handlers.portal_entries_handler.PortalEntriesHandler(application: Application, request: HTTPServerRequest, **kwargs: Any)[source]#

Bases: PortalResource

async get(portal_name)[source]#

univention.portal.handlers.portal_resource module#

class univention.portal.handlers.portal_resource.PortalResource(application: Application, request: HTTPServerRequest, **kwargs: Any)[source]#

Bases: RequestHandler

initialize(portals)[source]#
prepare(*args, **kwargs)[source]#

Called at the beginning of a request before get/post/etc.

Override this method to perform common initialization regardless of the request method.

Asynchronous support: Use async def or decorate this method with .gen.coroutine to make it asynchronous. If this method returns an Awaitable execution will not proceed until the Awaitable is done.

Added in version 3.1: Asynchronous support.

write_error(status_code, **kwargs)[source]#

Override to implement custom error pages.

write_error may call write, render, set_header, etc to produce output as usual.

If this error was caused by an uncaught exception (including HTTPError), an exc_info triple will be available as kwargs["exc_info"]. Note that this exception may not be the “current” exception for purposes of methods like sys.exc_info() or traceback.format_exc.

find_portal()[source]#
reverse_abs_url(name, args=None)[source]#