minor: ruff format
Tabs -> spaces
This commit is contained in:
parent
b2921b73b8
commit
fab228bf8f
56 changed files with 3629 additions and 3630 deletions
|
|
@ -10,48 +10,48 @@ from enum import StrEnum, auto
|
|||
|
||||
|
||||
class Status(StrEnum):
|
||||
"""
|
||||
Enumeration of organisation statuses.
|
||||
"""
|
||||
Enumeration of organisation statuses.
|
||||
|
||||
Attributes:
|
||||
PARTIAL(str): Organisation has been created but questionnaire hasn't been submitted.
|
||||
SUBMITTED (str): Questionnaire submitted but not approved.
|
||||
REMEDIATION (str): Questionnaire submitted but requires revisions.
|
||||
APPROVED (str): Questionnaire has been approved by an admin.
|
||||
REJECTED (str): Questionnaire has been rejected by an admin.
|
||||
REMOVED (str): Organisation has been removed.
|
||||
"""
|
||||
Attributes:
|
||||
PARTIAL(str): Organisation has been created but questionnaire hasn't been submitted.
|
||||
SUBMITTED (str): Questionnaire submitted but not approved.
|
||||
REMEDIATION (str): Questionnaire submitted but requires revisions.
|
||||
APPROVED (str): Questionnaire has been approved by an admin.
|
||||
REJECTED (str): Questionnaire has been rejected by an admin.
|
||||
REMOVED (str): Organisation has been removed.
|
||||
"""
|
||||
|
||||
PARTIAL = auto()
|
||||
SUBMITTED = auto()
|
||||
REMEDIATION = auto()
|
||||
APPROVED = auto()
|
||||
REJECTED = auto()
|
||||
REMOVED = auto()
|
||||
PARTIAL = auto()
|
||||
SUBMITTED = auto()
|
||||
REMEDIATION = auto()
|
||||
APPROVED = auto()
|
||||
REJECTED = auto()
|
||||
REMOVED = auto()
|
||||
|
||||
@property
|
||||
def is_pre_approval(self):
|
||||
return self in (self.PARTIAL, self.SUBMITTED, self.REMEDIATION)
|
||||
@property
|
||||
def is_pre_approval(self):
|
||||
return self in (self.PARTIAL, self.SUBMITTED, self.REMEDIATION)
|
||||
|
||||
@property
|
||||
def is_pre_submission(self):
|
||||
return self in (self.PARTIAL, self.REMEDIATION)
|
||||
@property
|
||||
def is_pre_submission(self):
|
||||
return self in (self.PARTIAL, self.REMEDIATION)
|
||||
|
||||
@property
|
||||
def is_blocked(self):
|
||||
return self in (self.REMOVED, self.REJECTED)
|
||||
@property
|
||||
def is_blocked(self):
|
||||
return self in (self.REMOVED, self.REJECTED)
|
||||
|
||||
|
||||
class ContactType(StrEnum):
|
||||
"""
|
||||
Enumeration of organisation contact types.
|
||||
"""
|
||||
Enumeration of organisation contact types.
|
||||
|
||||
Attributes:
|
||||
BILLING(str): Billing contact.
|
||||
SECURITY (str): Security contact.
|
||||
OWNER (str): Owner contact.
|
||||
"""
|
||||
Attributes:
|
||||
BILLING(str): Billing contact.
|
||||
SECURITY (str): Security contact.
|
||||
OWNER (str): Owner contact.
|
||||
"""
|
||||
|
||||
BILLING = auto()
|
||||
SECURITY = auto()
|
||||
OWNER = auto()
|
||||
BILLING = auto()
|
||||
SECURITY = auto()
|
||||
OWNER = auto()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue