~launchpad-pqm/launchpad/devel

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
# Copyright 2009 Canonical Ltd.  This software is licensed under the
# GNU Affero General Public License version 3 (see the file LICENSE).

# pylint: disable-msg=E0211,E0213

"""Source package release in Distribution interfaces."""

__metaclass__ = type

__all__ = [
    'IDistributionSourcePackageRelease',
    ]

from zope.interface import Attribute

from lp.soyuz.interfaces.sourcepackagerelease import ISourcePackageRelease


class IDistributionSourcePackageRelease(ISourcePackageRelease):
    """This is a SourcePackageRelease-In-A-Distribution. It represents a
    real source package release that has been uploaded to a distribution.
    You can interrogate it for interesting information about its history in
    the distro.
    """

    distribution = Attribute("The distribution.")
    sourcepackagerelease = Attribute("The source package release.")

    sourcepackage = Attribute("Meta DistributionSourcePackage correspondont "
                              "to this release.")

    name = Attribute("The source package name as text")
    displayname = Attribute("Display name for this package.")
    title = Attribute("Title for this package.")

    publishing_history = Attribute("Return a list of publishing "
        "records for this source package release in this distribution.")

    current_publishings = Attribute("Return a list of the places where "
        "this sourcepackage release is currently published in this "
        "distribution. The result is a list of "
        "DistroSeriesSourcePackageRelease objects.")

    builds = Attribute("The builds we have for this sourcepackage release "
        "specifically in this distribution. Note that binaries could "
        "be inherited from a parent distribution, not necessarily built "
        "here, but must be published in a main archive.")

    binary_package_names = Attribute("The binary package names of "
        "packages that were built from this source package release.")

    sample_binary_packages = Attribute("A single binary package of each "
        "named package produced from this source package in this "
        "distribution. The are each of form DistroSeriesBinaryPackage.")