Mixin adding a primary key integer column named ‘id’.
Mixin adding a timestamp column.
The timestamp defaults to the current time.
Bases: flask_sqlalchemy.Model, evesrp.util.models.AutoID, evesrp.util.models.Timestamped, evesrp.util.models.AutoName
Actions change the state of a Request.
With the exception of the comment action (which does nothing), actions change the state of a Request.
Any additional notes for this action.
The action be taken. See ActionType for possible values.
Bases: flask_sqlalchemy.Model, evesrp.util.models.AutoID, evesrp.util.models.Timestamped, evesrp.util.models.AutoName
Modifiers apply bonuses or penalties to Requests.
This is an abstract base class for the pair of concrete implementations. Modifiers can be voided at a later date. The user who voided a modifier and when they did are recorded.
Any notes explaining this modification.
Mark this modifier as void.
Parameters: | user (User) – The user voiding this modifier |
---|
If this modifier has been voided, this will be the timestamp of when it was voided.
Bases: flask_sqlalchemy.Model, evesrp.util.models.AutoID, evesrp.util.models.Timestamped, evesrp.util.models.AutoName
Requests represent SRP requests.
A list of Actions that have been applied to this request, sorted in the order they were applied.
The constellation this loss occured in.
Supporting information for the request.
The date and time of when the ship was destroyed.
The URL of the source killmail.
A list of all Modifiers that have been applied to this request, regardless of wether they have been voided or not. They’re sorted in the order they were added.
The resulting payout taking all active modifiers into account.
The return value is an internal class that will return different representations depending on the type it is being coerced to. Strings will be formatted accroding to the current locale with thousands separators, float()s will be in millions of ISK, and ints()s will be the total ISK value (equivalent to the string representation).
The region this loss occured in.
The type of ship that was destroyed.
The current status of this request
The solar system this loss occured in.
Get a special HTML representation of an attribute.
Divisions can have a transformer defined on a for attributes that output a URL associated with that attribute. This property provides easy access to the output of any transformed attributes on this request.
Updates status whenever a new Action is added and verifies permissions.
Ensures that base_payout is positive. The value is clamped to 0.
Enforces that status changes follow the status state diagram below. When an invalid change is attempted, ActionError is raised.
R means a reviewer can make that change, S means the submitter can make that change, and P means payers can make that change. Solid borders are terminal states.