class BugTaskStatusSearchDisplay(DBEnumeratedType): """Bug Task Status The various possible states for a bugfix in advanced bug search forms. """ use_template(BugTaskStatusSearch, exclude=('INCOMPLETE'))
class FilterableStatusValues(EnumeratedType): """Selectable values for filtering the merge proposal listings.""" use_template(BranchMergeProposalStatus) sort_order = ('ALL', 'WORK_IN_PROGRESS', 'NEEDS_REVIEW', 'CODE_APPROVED', 'REJECTED', 'MERGED', 'MERGE_FAILED', 'QUEUED', 'SUPERSEDED') ALL = Item("Any status")
class NewSpecificationDefinitionStatus(DBEnumeratedType): """The Initial status of a Specification. The initial status to define the feature and get approval for the implementation plan. """ use_template(SpecificationDefinitionStatus, include=( 'NEW', 'DISCUSSION', 'DRAFT', 'PENDINGREVIEW', 'PENDINGAPPROVAL', 'APPROVED', ))
class BugTaskStatusSearch(DBEnumeratedType): """Bug Task Status The various possible states for a bugfix in searches. """ use_template(BugTaskStatus, exclude=('UNKNOWN')) INCOMPLETE_WITH_RESPONSE = DBItem(13, """ Incomplete (with response) This bug has new information since it was last marked as requiring a response. """) INCOMPLETE_WITHOUT_RESPONSE = DBItem(14, """ Incomplete (without response) This bug requires more information, but no additional details were supplied yet.. """)
class BranchLifecycleStatusFilter(EnumeratedType): """Branch Lifecycle Status Filter Used to populate the branch lifecycle status filter widget. UI only. """ use_template(BranchLifecycleStatus) sort_order = ('CURRENT', 'ALL', 'EXPERIMENTAL', 'DEVELOPMENT', 'MATURE', 'MERGED', 'ABANDONED') CURRENT = Item(""" Any active status Show the currently active branches. """) ALL = Item(""" Any status Show all the branches. """)
class UICreatableBranchType(EnumeratedType): """The types of branches that can be created through the web UI.""" use_template(BranchType, exclude='IMPORTED')
class AccessLevel(DBEnumeratedType): """The level of access any given principal has.""" use_template(OAuthPermission, exclude='UNAUTHORIZED')
class ExtendedTestEnumeration(DBEnumeratedType): use_template(DBTestEnumeration) VALUE3 = DBItem(3, 'Yet another item')