Exemple #1
0
class BuildFarmJobType(DBEnumeratedType):
    """Soyuz build farm job type.

    An enumeration with the types of jobs that may be run on the Soyuz build
    farm.
    """

    PACKAGEBUILD = DBItem(
        1, """
        Binary package build

        Build a source package.
        """)

    BRANCHBUILD = DBItem(
        2, """
        Branch build

        Build a package from a bazaar branch.
        """)

    RECIPEBRANCHBUILD = DBItem(
        3, """
        Recipe branch build

        Build a package from a bazaar branch and a recipe.
        """)

    TRANSLATIONTEMPLATESBUILD = DBItem(
        4, """
        Translation template build

        Generate translation templates from a bazaar branch.
        """)
Exemple #2
0
class CodeReviewNotificationLevel(DBEnumeratedType):
    """Code Review Notification Level

    The notification level is used to control the amount and content
    of the email notifications send with respect to code reviews related
    to this branch.
    """

    NOEMAIL = DBItem(
        0, """
        No email

        Do not send any email about code review for this branch.
        """)

    STATUS = DBItem(
        1, """
        Status changes only

        Send email when votes are cast or status is changed.
        """)

    FULL = DBItem(
        2, """
        Email about all changes

        Send email about any code review activity for this branch.
        """)
Exemple #3
0
class CodeImportMachineOfflineReason(DBEnumeratedType):
    """Reason why a CodeImportMachine is offline.

    A machine goes offline when a code-import-controller daemon process shuts
    down, or appears to have crashed. Recording the reason a machine went
    offline provides useful diagnostic information.
    """

    # Daemon termination

    STOPPED = DBItem(
        110, """
        Stopped

        The code-import-controller daemon was shut-down, interrupting running
        jobs.
        """)

    QUIESCED = DBItem(
        120, """
        Quiesced

        The code-import-controller daemon has shut down after completing
        any running jobs.
        """)

    # Crash recovery

    WATCHDOG = DBItem(
        210, """
        Watchdog

        The watchdog has detected that the machine's heartbeat has not been
        updated recently.
        """)
Exemple #4
0
class SprintSpecificationStatus(DBEnumeratedType):
    """The current approval status of the spec on this sprint's agenda.

    This enum allows us to know whether or not the meeting admin team has
    agreed to discuss an item.
    """

    ACCEPTED = DBItem(
        10, """
        Accepted

        The meeting organisers have confirmed this topic for the meeting
        agenda.
        """)

    DECLINED = DBItem(
        20, """
        Declined

        This spec has been declined from the meeting agenda
        because of a lack of available resources, or uncertainty over
        the specific requirements or outcome desired.
        """)

    PROPOSED = DBItem(
        30, """
        Proposed

        This spec has been submitted for consideration by the meeting
        organisers. It has not yet been accepted or declined for the
        agenda.
        """)
Exemple #5
0
class RosettaTranslationOrigin(DBEnumeratedType):
    """Rosetta Translation Origin

    Translation sightings in Rosetta can come from a variety
    of sources. We might see a translation for the first time
    in CVS, or we might get it through the web, for example.
    This schema documents those options.
    """

    SCM = DBItem(
        1, """
        Source Control Management Source

        This translation sighting came from a PO File we
        analysed in a source control managements sytem first.
        """)

    ROSETTAWEB = DBItem(
        2, """
        Rosetta Web Source

        This translation was presented to Rosetta via
        the community web site.
        """)

    LAUNCHPAD_GENERATED = DBItem(
        3, """
        Generated by Launchpad itself.

        This is used for messages like generated translation
        credits messages.
        """)
Exemple #6
0
class GitObjectType(DBEnumeratedType):
    """Git Object Type

    Keep these in sync with the concrete GIT_OBJ_* enum values in libgit2.
    """

    COMMIT = DBItem(1, """
        Commit

        A commit object.
        """)

    TREE = DBItem(
        2, """
        Tree

        A tree (directory listing) object.
        """)

    BLOB = DBItem(
        3, """
        Blob

        A file revision object.
        """)

    TAG = DBItem(
        4, """
        Tag

        An annotated tag object.
        """)
Exemple #7
0
class SpecificationLifecycleStatus(DBEnumeratedType):
    """The current "lifecycle" status of a specification.

    Specs go from NOTSTARTED, to STARTED, to COMPLETE.
    """

    NOTSTARTED = DBItem(
        10, """
        Not started

        No work has yet been done on this feature.
        """)

    STARTED = DBItem(
        20, """
        Started

        This feature is under active development.
        """)

    COMPLETE = DBItem(
        30, """
        Complete

        This feature has been marked "complete" because no further work is
        expected. Either the feature is done, or it has been abandoned.
        """)
Exemple #8
0
class TranslationPriority(DBEnumeratedType):
    """Translation Priority

    Translations in Rosetta can be assigned a priority. This is used in a
    number of places. The priority stored on the translation itself is set
    by the upstream project maintainers, and used to identify the
    translations they care most about. For example, if Apache were nearing a
    big release milestone they would set the priority on those POTemplates
    to 'high'. The priority is also used by TranslationEfforts to indicate
    how important that POTemplate is to the effort. And lastly, an
    individual translator can set the priority on his personal subscription
    to a project, to determine where it shows up on his list.  """

    HIGH = DBItem(
        1, """
        High

        This translation should be shown on any summary list of translations
        in the relevant context. For example, 'high' priority projects show
        up on the home page of a TranslationEffort or Project in Rosetta.
        """)

    MEDIUM = DBItem(
        2, """
        Medium

        A medium priority POTemplate should be shown on longer lists and
        dropdowns lists of POTemplates in the relevant context.  """)

    LOW = DBItem(
        3, """
        Low

        A low priority POTemplate should only show up if a comprehensive
        search or complete listing is requested by the user.  """)
Exemple #9
0
class BugNotificationLevel(DBEnumeratedType):
    """Bug Notification Level.

    The type and volume of bug notification email sent to subscribers.
    """

    LIFECYCLE = DBItem(
        20, """
        Lifecycle

        Only send a low volume of notifications about new bugs registered,
        bugs removed or bug targetting.
        """)

    METADATA = DBItem(
        30, """
        Details

        Send bug lifecycle notifications, as well as notifications about
        changes to the bug's details like status and description.
        """)

    COMMENTS = DBItem(
        40, """
        Discussion

        Send bug lifecycle notifications, detail change notifications and
        notifications about new events in the bugs's discussion, like new
        comments.
        """)
Exemple #10
0
class MailingListAutoSubscribePolicy(DBEnumeratedType):
    """A person's auto-subscribe policy.

    When a person joins a team, or is joined to a team, their
    auto-subscribe policy describes how and whether they will be
    automatically subscribed to any team mailing list that the team may have.

    This does not describe what happens when a team that already has members
    gets a new team mailing list.  In that case, its members are never
    automatically subscribed to the mailing list.
    """

    NEVER = DBItem(
        0, """
        Never subscribe to mailing lists

        Do not subscribe to mailing lists.
        """)

    ON_REGISTRATION = DBItem(
        1, """
        Ask me when I join a team

        Launchpad will only ask about mailing subscriptions when you
        request to join a team.
        """)

    ALWAYS = DBItem(
        2, """
        Always subscribe me to mailing lists

        Launchpad will automatically subscribe you to a team's
        mailing list, even when someone else adds you to the team.
        """)
class MirrorStatus(DBEnumeratedType):
    """The status of a mirror."""

    PENDING_REVIEW = DBItem(
        10, """
        Pending review

        This mirror hasn't been reviewed by a mirror admin.
        """)

    UNOFFICIAL = DBItem(
        20, """
        Unofficial

        This mirror has been reviewed by a mirror admin and is not one of
        the official mirrors for its distribution.
        """)

    OFFICIAL = DBItem(
        30, """
        Official

        This mirror has been reviewed by a mirror admin and is one of
        the official mirrors for its distribution.
        """)
class PackagingType(DBEnumeratedType):
    """Source packages.

    Source packages include software from one or more Upstream open source
    projects. This schema shows the relationship between a source package
    and the upstream open source products that it might incorporate. This
    schema is used in the Packaging table.
    """

    PRIME = DBItem(
        1, """
        Primary Project

        This is the primary project packaged in this source package. For
        example, a source package "apache2" would have a "prime" packaging
        relationship with the "apache2" product from the Apache Project.
        The project and package don't have to have the same name.
        """)

    INCLUDES = DBItem(
        2, """
        SourcePackage Includes Project

        This source package includes some part or all of the project. For
        example, the "cadaver" source package has an "includes" packaging
        relationship with the libneon project.
        """)
Exemple #13
0
class AccountStatus(DBEnumeratedType):
    """The status of an account."""

    NOACCOUNT = DBItem(
        10, """
        Unactivated account

        The account has not yet been activated.
        """)

    ACTIVE = DBItem(
        20, """
        Active account

        The account is active.
        """)

    DEACTIVATED = DBItem(
        30, """
        Deactivated account

        The account has been deactivated by the account's owner.
        """)

    SUSPENDED = DBItem(
        40, """
        Suspended Launchpad account

        The account has been suspended by a Launchpad admin.
        """)
Exemple #14
0
class SourcePackageType(DBEnumeratedType):
    """Source Package Format

    Launchpad supports distributions that use source packages in a variety
    of source package formats. This schema documents the types of source
    package format that we understand.
    """

    DPKG = DBItem(
        1, """
        The DEB Format

        This is the source package format used by Ubuntu, Debian, Linspire
        and similar distributions.
        """)

    RPM = DBItem(
        2, """
        The RPM Format

        This is the format used by Red Hat, Mandrake, SUSE and other similar
        distributions.
        """)

    EBUILD = DBItem(
        3, """
        The Ebuild Format

        This is the source package format used by Gentoo.
        """)
Exemple #15
0
class SourcePackageFormat(DBEnumeratedType):
    """Source package format

    There are currently three formats of Debian source packages. The Format
    field in the .dsc file must specify one of these formats.
    """

    FORMAT_1_0 = DBItem(
        0, """
        1.0

        Specifies either a native (having a single tar.gz) or non-native
        (having an orig.tar.gz and a diff.gz) package. Supports only gzip
        compression.
        """)

    FORMAT_3_0_QUILT = DBItem(
        1, """
        3.0 (quilt)

        Specifies a non-native package, with an orig.tar.* and a debian.tar.*.
        Supports gzip, bzip2, and xz compression.
        """)

    FORMAT_3_0_NATIVE = DBItem(
        2, """
        3.0 (native)

        Specifies a native package, with a single tar.*. Supports gzip,
        bzip2, and xz compression.
        """)
Exemple #16
0
class BugNotificationStatus(DBEnumeratedType):
    """The status of a bug notification.

    A notification may be pending, sent, or omitted."""

    PENDING = DBItem(
        10, """
        Pending

        The notification has not yet been sent.
        """)

    OMITTED = DBItem(
        20, """
        Omitted

        The system considered sending the notification, but omitted it.
        This is generally because the action reported by the notification
        was immediately undone.
        """)

    SENT = DBItem(
        30, """
        Sent

        The notification has been sent.
        """)

    DEFERRED = DBItem(
        40, """
        Deferred

        The notification is deferred.  The recipient list was not calculated
        at creation time but is done when processed.
        """)
Exemple #17
0
class GitRepositoryType(DBEnumeratedType):
    """Git Repository Type

    The type of a repository determines its interaction with other
    subsystems.
    """

    HOSTED = DBItem(
        1, """
        Hosted

        Launchpad is the primary location of this repository.
        """)

    # Skipping MIRRORED (2) to stay in sync with BranchType, in order to
    # reduce confusion for manual database queries.

    IMPORTED = DBItem(
        3, """
        Imported

        This repository has been imported from an externally-hosted
        repository and is made available through Launchpad.
        """)

    REMOTE = DBItem(
        4, """
        Remote

        Registered in Launchpad with an external location,
        but is not to be mirrored, nor available through Launchpad.
        """)
Exemple #18
0
class ServiceUsage(DBEnumeratedType):
    """Launchpad application usages.

    Indication of a pillar's usage of Launchpad for the various services:
    bug tracking, translations, code hosting, blueprint, and answers.
    """

    UNKNOWN = DBItem(
        10, """
    Unknown

    The maintainers have not indicated usage.  This value is the default for
    new pillars.
    """)

    LAUNCHPAD = DBItem(
        20, """
    Launchpad

    Launchpad is used to provide this service.
    """)

    EXTERNAL = DBItem(
        30, """
    External

    The service is provided external to Launchpad.
    """)

    NOT_APPLICABLE = DBItem(
        40, """
    Not Applicable

    The pillar does not use this type of service in Launchpad or externally.
    """)
Exemple #19
0
class BranchFormat(BazaarFormatEnum):
    """Branch on-disk format.

    This indicates which (Bazaar) format is used on-disk.  The list must be
    updated as the list of formats supported by Bazaar is updated.
    """

    UNRECOGNIZED = DBItem(1000, '!Unrecognized!', 'Unrecognized format')

    # Branch 4 was only used with all-in-one formats, so it didn't have its
    # own marker.  It was implied by the control directory marker.
    BZR_BRANCH_4 = _format_enum(
        4, BzrBranchFormat4, 'Fake Bazaar Branch 4 marker')

    BRANCH_REFERENCE = _format_enum(1, BranchReferenceFormat)

    BZR_BRANCH_5 = _format_enum(5, BzrBranchFormat5)

    BZR_BRANCH_6 = _format_enum(6, BzrBranchFormat6)

    BZR_BRANCH_7 = _format_enum(7, BzrBranchFormat7)

    # Format string copied from Bazaar 1.15 code. This should be replaced with
    # a line that looks like _format_enum(8, BzrBranchFormat8) when we upgrade
    # to Bazaar 1.15.
    BZR_BRANCH_8 = DBItem(
        8, "Bazaar Branch Format 8 (needs bzr 1.15)\n", "Branch format 8")

    BZR_LOOM_1 = _format_enum(101, BzrBranchLoomFormat1)

    BZR_LOOM_2 = _format_enum(106, BzrBranchLoomFormat6)

    BZR_LOOM_3 = DBItem(
        107, "Bazaar-NG Loom branch format 7\n", "Loom branch format 7")
Exemple #20
0
class SharingPermission(DBEnumeratedType):
    """Sharing permission.

    The level of access granted for a particular access policy.
    """

    NOTHING = DBItem(
        1, """
        Nothing

        Revoke all bug and branch subscriptions.
        """)

    ALL = DBItem(
        2, """
        All

        Share all bugs and branches.
        """)

    SOME = DBItem(
        3, """
        Some

        Share bug and branch subscriptions.
        """)
Exemple #21
0
class SpecificationGoalStatus(DBEnumeratedType):
    """The target status for this specification.

    This enum allows us to show whether or not the specification has been
    approved or declined as a target for the given productseries or
    distroseries.
    """

    ACCEPTED = DBItem(
        10, """
        Accepted

        The drivers have confirmed that this specification is targeted to
        the stated distribution release or product series.
        """)

    DECLINED = DBItem(
        20, """
        Declined

        The drivers have decided not to accept this specification as a goal
        for the stated distribution release or product series.
        """)

    PROPOSED = DBItem(
        30, """
        Proposed

        This spec has been submitted as a potential goal for the stated
        product series or distribution release, but the drivers have not yet
        accepted or declined that goal.
        """)
Exemple #22
0
class DistroSeriesDifferenceStatus(DBEnumeratedType):
    """Distribution series difference status.

    The status of a package difference between two DistroSeries.
    """

    NEEDS_ATTENTION = DBItem(
        1, """
        Needs attention

        This difference is current and needs attention.
        """)

    BLACKLISTED_CURRENT = DBItem(
        2, """
        Blacklisted current version

        This difference is being ignored until a new package is uploaded
        or the status is manually updated.
        """)

    BLACKLISTED_ALWAYS = DBItem(
        3, """
        Blacklisted always

        This difference should always be ignored.
        """)

    RESOLVED = DBItem(
        4, """
        Resolved

        This difference has been resolved and versions are now equal.
        """)
Exemple #23
0
class SpecificationWorkItemStatus(DBEnumeratedType):
    TODO = DBItem(
        0, """
        Todo

        A work item that's not done yet.
        """)
    DONE = DBItem(
        1, """
        Done

        A work item that's done.
        """)
    POSTPONED = DBItem(
        2, """
        Postponed

        A work item that has been postponed.
        """)
    INPROGRESS = DBItem(
        3, """
        In progress

        A work item that is inprogress.
        """)
    BLOCKED = DBItem(
        4, """
        Blocked

        A work item that is blocked.
        """)
Exemple #24
0
class DistroSeriesDifferenceType(DBEnumeratedType):
    """Distribution series difference type."""

    UNIQUE_TO_DERIVED_SERIES = DBItem(
        1, """
        Unique to derived series

        This package is present in the derived series but not the parent
        series.
        """)

    MISSING_FROM_DERIVED_SERIES = DBItem(
        2, """
        Missing from derived series

        This package is present in the parent series but missing from the
        derived series.
        """)

    DIFFERENT_VERSIONS = DBItem(
        3, """
        Different versions

        This package is present in both series with different versions.
        """)
Exemple #25
0
class TranslationValidationStatus(DBEnumeratedType):
    """Translation Validation Status

    Every time a translation is added to Rosetta we should checked that
    follows all rules to be a valid translation inside a .po file.
    This schema documents the status of that validation.
    """

    UNKNOWN = DBItem(
        0, """
        Unknown

        This translation has not been validated yet.
        """)

    OK = DBItem(
        1, """
        Ok

        This translation has been validated and no errors were discovered.
        """)

    UNKNOWNERROR = DBItem(
        2, """
        Unknown Error

        This translation has an unknown error.
        """)
Exemple #26
0
class ProductJobType(DBEnumeratedType):
    """Values that IProductJob.job_type can take."""

    REVIEWER_NOTIFICATION = DBItem(
        0, """
        Reviewer notification

        A notification sent by a project reviewer to the project maintainers.
        """)

    COMMERCIAL_EXPIRATION_30_DAYS = DBItem(
        1, """
        Commercial subscription expires in 30 days.

        A notification stating that the project's commercial subscription
        expires in 30 days.
        """)

    COMMERCIAL_EXPIRATION_7_DAYS = DBItem(
        2, """
        Commercial subscription expires in 7 days.

        A notification stating that the project's commercial subscription
        expires in 7 days.
        """)

    COMMERCIAL_EXPIRED = DBItem(
        3, """
        Commercial subscription expired.

        A notification stating that the project's commercial subscription
        expired.
        """)
Exemple #27
0
class CodeImportMachineState(DBEnumeratedType):
    """CodeImportMachine State

    The operational state of the code-import-controller daemon on a given
    machine.
    """

    OFFLINE = DBItem(
        10, """
        Offline

        The code-import-controller daemon is not running on this machine.
        """)

    ONLINE = DBItem(
        20, """
        Online

        The code-import-controller daemon is running on this machine and
        accepting new jobs.
        """)

    QUIESCING = DBItem(
        30, """
        Quiescing

        The code-import-controller daemon is running on this machine, but has
        been requested to shut down and will not accept any new job.
        """)
class GPGKeyAlgorithm(DBEnumeratedType):
    """
    GPG Compliant Key Algorithms Types:

    1 : "R", # RSA
    16: "g", # ElGamal
    17: "D", # DSA
    20: "G", # ElGamal, compromised

    FIXME
    Rewrite it according to the experimental API returning also a name
    attribute tested on 'algorithmname' attribute

    """

    R = DBItem(1, """
        R

        RSA""")

    LITTLE_G = DBItem(16, """
         g

         ElGamal""")

    D = DBItem(17, """
        D

        DSA""")

    G = DBItem(20, """
        G

        ElGamal, compromised""")
Exemple #29
0
class CveStatus(DBEnumeratedType):
    """The Status of this item in the CVE Database.

    When a potential problem is reported to the CVE authorities they assign
    a CAN number to it. At a later stage, that may be converted into a CVE
    number. This indicator tells us whether or not the issue is believed to
    be a CAN or a CVE.
    """

    CANDIDATE = DBItem(
        1, """
        Candidate

        The vulnerability is a candidate which hasn't yet been confirmed and
        given "Entry" status.
        """)

    ENTRY = DBItem(
        2, """
        Entry

        This vulnerability or threat has been assigned a CVE number, and is
        fully documented. It has been through the full CVE verification
        process.
        """)

    DEPRECATED = DBItem(
        3, """
        Deprecated

        This entry is deprecated, and should no longer be referred to in
        general correspondence. There is either a newer entry that better
        defines the problem, or the original candidate was never promoted to
        "Entry" status.
        """)
Exemple #30
0
class BugNominationStatus(DBEnumeratedType):
    """Bug Nomination Status.

    The status of the decision to fix a bug in a specific release.
    """

    PROPOSED = DBItem(10, """
        Nominated

        This nomination hasn't yet been reviewed, or is still under
        review.
        """)

    APPROVED = DBItem(20, """
        Approved

        The release management team has approved fixing the bug for this
        release.
        """)

    DECLINED = DBItem(30, """
        Declined

        The release management team has declined fixing the bug for this
        release.
        """)