~launchpad-pqm/launchpad/devel

8687.15.17 by Karl Fogel
Add the copyright header block to the rest of the files under lib/lp/.
1
# Copyright 2009 Canonical Ltd.  This software is licensed under the
2
# GNU Affero General Public License version 3 (see the file LICENSE).
3
4983.1.1 by Curtis Hovey
Added lint exceptions to __init__.py and interface/*.py.
4
# pylint: disable-msg=E0211,E0213
2705 by Canonical.com Patch Queue Manager
r=spiv, mark's soyuz loving.
5
6
"""Source package release in Distribution interfaces."""
7
8
__metaclass__ = type
9
10
__all__ = [
11
    'IDistributionSourcePackageRelease',
12
    ]
13
8130.4.8 by Michael Nelson
Fixed lint.
14
from zope.interface import Attribute
2705 by Canonical.com Patch Queue Manager
r=spiv, mark's soyuz loving.
15
11403.1.4 by Henning Eggers
Reformatted imports using format-imports script r32.
16
from lp.soyuz.interfaces.sourcepackagerelease import ISourcePackageRelease
2705 by Canonical.com Patch Queue Manager
r=spiv, mark's soyuz loving.
17
18
19
class IDistributionSourcePackageRelease(ISourcePackageRelease):
20
    """This is a SourcePackageRelease-In-A-Distribution. It represents a
21
    real source package release that has been uploaded to a distribution.
22
    You can interrogate it for interesting information about its history in
23
    the distro.
24
    """
25
26
    distribution = Attribute("The distribution.")
27
    sourcepackagerelease = Attribute("The source package release.")
28
2810.1.1 by Celso Providelo
re-merge stuff by hand-made diffs from my damaged small_fix branch (mpool is working on fix)
29
    sourcepackage = Attribute("Meta DistributionSourcePackage correspondont "
30
                              "to this release.")
31
2705 by Canonical.com Patch Queue Manager
r=spiv, mark's soyuz loving.
32
    name = Attribute("The source package name as text")
33
    displayname = Attribute("Display name for this package.")
34
    title = Attribute("Title for this package.")
35
6615.1.3 by James Henstridge
Undo DistributionSourcePackageRelease changes, and create a
36
    publishing_history = Attribute("Return a list of publishing "
2705 by Canonical.com Patch Queue Manager
r=spiv, mark's soyuz loving.
37
        "records for this source package release in this distribution.")
38
39
    current_publishings = Attribute("Return a list of the places where "
40
        "this sourcepackage release is currently published in this "
41
        "distribution. The result is a list of "
4285.2.1 by Mark Shuttleworth
Massive renaming of distrorelease to distroseries
42
        "DistroSeriesSourcePackageRelease objects.")
2705 by Canonical.com Patch Queue Manager
r=spiv, mark's soyuz loving.
43
44
    builds = Attribute("The builds we have for this sourcepackage release "
45
        "specifically in this distribution. Note that binaries could "
46
        "be inherited from a parent distribution, not necessarily built "
8130.4.7 by Michael Nelson
Added same fix for DSPR (joining by BPR->BPPH).
47
        "here, but must be published in a main archive.")
2705 by Canonical.com Patch Queue Manager
r=spiv, mark's soyuz loving.
48
49
    binary_package_names = Attribute("The binary package names of "
50
        "packages that were built from this source package release.")
51
52
    sample_binary_packages = Attribute("A single binary package of each "
53
        "named package produced from this source package in this "
4285.2.1 by Mark Shuttleworth
Massive renaming of distrorelease to distroseries
54
        "distribution. The are each of form DistroSeriesBinaryPackage.")