示例#1
0
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")
示例#3
0
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',
                 ))
示例#4
0
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..
        """)
示例#5
0
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.
        """)
示例#6
0
class UICreatableBranchType(EnumeratedType):
    """The types of branches that can be created through the web UI."""
    use_template(BranchType, exclude='IMPORTED')
示例#7
0
class AccessLevel(DBEnumeratedType):
    """The level of access any given principal has."""
    use_template(OAuthPermission, exclude='UNAUTHORIZED')
示例#8
0
class ExtendedTestEnumeration(DBEnumeratedType):
    use_template(DBTestEnumeration)
    VALUE3 = DBItem(3, 'Yet another item')