web¶
AioHTTP Web Server Setup
Functions
|
|
|
|
|
Provides all web views using aiohttp-jinja2 with default values |
|
Initialize App |
Initialize app and launch internal celery worker |
Classes
|
Authorization policy for web interface |
Documentation
-
class
bioconda_utils.bot.web.
AuthorizationPolicy
(app)[source]¶ Authorization policy for web interface
Retrieve authorized user id.
- Parameters
identity (
str
) – random string identifying user. We use bearer token.- Return type
- Returns
Logged in Github API client.
-
bioconda_utils.bot.web.
LOGLEVEL
= 'INFO'¶ Override this to get more verbose logging of web app (and, if launched with web frontend, the worker).
-
async
bioconda_utils.bot.web.
jinja_defaults
(request)[source]¶ Provides all web views using aiohttp-jinja2 with default values
- Values are:
user: The `AiohttpGitHubHandler for the user if a user is logged in.
version: The version of the bot running
navigation_bar: List of 3-tuples for building nav bar. Each tuple comprises the location, ID and natural name for the page to be added to the main nav bar.
active_page: The ID of the currently rendered page. This is set in the aiohttp router as
name
field.title: The title of the current page. Parsed from navigation_bar using active_page.