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
univention.portal.handlers.portal_entries_handler module#
univention.portal.handlers.portal_resource module#
- class univention.portal.handlers.portal_resource.PortalResource(application: Application, request: HTTPServerRequest, **kwargs: Any)[source]#
Bases:
RequestHandler- 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 defor decorate this method with .gen.coroutine to make it asynchronous. If this method returns anAwaitableexecution will not proceed until theAwaitableis done.Added in version 3.1: Asynchronous support.
- write_error(status_code, **kwargs)[source]#
Override to implement custom error pages.
write_errormay call write, render, set_header, etc to produce output as usual.If this error was caused by an uncaught exception (including HTTPError), an
exc_infotriple will be available askwargs["exc_info"]. Note that this exception may not be the “current” exception for purposes of methods likesys.exc_info()ortraceback.format_exc.