Trampoline for AuthMethod-specific views.
See Authmethod.view for more details.
Presents the login form and processes responses from that form.
When a POST request is recieved, this function passes control to the appropriate login method.
Present a form for adding a division and also process that form.
Only accesible to adminstrators.
Generate a page showing the details of a division.
Shows which groups and individuals have been granted permissions to each division.
Only accesible to administrators.
Parameters: | division_id (int) – The ID number of the division |
---|
Show a page listing all divisions.
Accesible only to administrators.
API method to get a list of transformers for a division.
Parameters: |
|
---|---|
Returns: | JSON |
A special view made for quickly processing payouts for requests.
Show all requests that the current user has permissions to access.
This is used for the various permission-specific views.
Create a PermissionRequestListing for the given permissions and statuses.
Parameters: |
---|
Shows a list of all personally submitted requests and divisions the user has permissions in.
It will show all requests the current user has submitted.
Abstract class for lists of Requests.
Subclasses will be able to respond to both normal HTML requests as well as to API requests with JSON.
Decorators to apply to the view functions
Returns the response to requests.
Part of the flask.views.View interface.
Returns a list Requests belonging to the specified Division, or all divisions if None. Must be implemented by subclasses, as this is an abstract method.
Parameters: | division_id (int) – ID number of a Division, or None. |
---|---|
Returns: | Requests |
Return type: | iterable |
The template to use for listing requests
Custom :py:class:’~.Field’ validator that checks if any Killmail accepts the given URL.
Get a list of ValidKillmails for each killmail source.
This method is used to delay accessing current_app until we’re in a request context. :returns: a list of ValidKillmails :rtype list:
Handles responding to all of the Request detail functions.
The various modifier functions all depend on this function to create the actual response content. Only one of the arguments is required. The srp_request argument is a conveniece to other functions calling this function that have already retrieved the request.
Parameters: |
---|
Handles POST requests that modify Requests.
Because of the numerous possible forms, this function bounces execution to a more specific function base on the form’s “id_” field.
Parameters: | request_id (int) – the ID of the request. |
---|
Utility function for creating PermissionRequestListing views.
Parameters: |
|
---|
Submit a Request.
Displays a form for submitting a request and then processes the submitted information. Verifies that the user has the appropriate permissions to submit a request for the chosen division and that the killmail URL given is valid. Also enforces that the user submitting this requests controls the character from the killmail and prevents duplicate requests.