1
0
Fork 0
mirror of https://github.com/retspen/webvirtcloud synced 2026-11-11 04:36:48 +00:00
webvirtcloud/operations/jobs.py

12 lines
231 B
Python

"""Kinds of jobs by name (filled by each app's jobs.py via register)."""
KINDS = {}
def get_kind(name):
return KINDS[name]
def label_of(name):
kind = KINDS.get(name)
return kind.label if kind is not None else name