Source code for weaver.sort

[docs]SORT_CREATED = "created"
[docs]SORT_FINISHED = "finished"
[docs]SORT_STATUS = "status"
[docs]SORT_PROCESS = "process"
[docs]SORT_SERVICE = "service"
[docs]SORT_USER = "user"
[docs]SORT_QUOTE = "quote"
[docs]SORT_PRICE = "price"
[docs]SORT_ID = "id"
[docs]SORT_ID_LONG = "identifier" # long form employed by Processes in DB representation
[docs]PROCESS_SORT_VALUES = frozenset([ SORT_ID, SORT_ID_LONG, # will replace by short ID to conform with JSON representation SORT_PROCESS, # since listing processes, can be an alias to ID SORT_CREATED,
])
[docs]JOB_SORT_VALUES = frozenset([ SORT_CREATED, SORT_FINISHED, SORT_STATUS, SORT_PROCESS, SORT_SERVICE, SORT_USER,
])
[docs]QUOTE_SORT_VALUES = frozenset([ SORT_ID, SORT_PROCESS, SORT_PRICE, SORT_CREATED,
])
[docs]BILL_SORT_VALUES = frozenset([ SORT_ID, SORT_QUOTE, SORT_CREATED,
])