~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/registry/interfaces/distributionsourcepackage.py

  • Committer: Danilo Segan
  • Date: 2011-04-22 14:02:29 UTC
  • mto: This revision was merged to the branch mainline in revision 12910.
  • Revision ID: danilo@canonical.com-20110422140229-zhq4d4c2k8jpglhf
Ignore hidden files when building combined JS file.

Show diffs side-by-side

added added

removed removed

Lines of Context:
30
30
    TextLine,
31
31
    )
32
32
 
33
 
from lp import _
34
 
from lp.answers.interfaces.questiontarget import IQuestionTarget
 
33
from canonical.launchpad import _
35
34
from lp.bugs.interfaces.bugtarget import (
36
35
    IBugTarget,
37
36
    IHasOfficialBugTags,
45
44
    IHasMergeProposals,
46
45
    )
47
46
from lp.registry.interfaces.distribution import IDistribution
48
 
from lp.registry.interfaces.role import IHasDrivers
49
47
from lp.soyuz.enums import ArchivePurpose
50
48
 
51
49
 
52
50
class IDistributionSourcePackage(IBugTarget, IHasBranches, IHasMergeProposals,
53
 
                                 IHasOfficialBugTags,
54
51
                                 IStructuralSubscriptionTarget,
55
 
                                 IQuestionTarget, IHasDrivers):
 
52
                                 IHasOfficialBugTags):
56
53
    """Represents a source package in a distribution.
57
54
 
58
55
    Create IDistributionSourcePackages by invoking
83
80
            # interfaces/product.py.
84
81
            schema=Interface))
85
82
 
86
 
    is_official = Attribute(
87
 
        'Is this source package officially in the distribution?')
88
 
 
89
83
    summary = Attribute(
90
84
        'The summary of binary packages built from this package')
91
85
 
92
 
    binary_names = Attribute(
93
 
        'A list of binary package names built from this package.')
94
 
 
95
86
    currentrelease = Attribute(
96
87
        "The latest published `IDistributionSourcePackageRelease` of a "
97
88
        "source package with this name in the distribution or distroseries, "
123
114
        "Number of translations matching the distribution and "
124
115
        "sourcepackagename of the IDistributionSourcePackage.")
125
116
 
126
 
    drivers = Attribute("The drivers for the distribution.")
127
 
 
128
117
    def getReleasesAndPublishingHistory():
129
118
        """Return a list of all releases of this source package in this
130
119
        distribution and their corresponding publishing history.
216
205
    def __ne__(other):
217
206
        """IDistributionSourcePackage comparison method.
218
207
 
219
 
        Distro sourcepackages compare not equal if either of their
220
 
        distribution or sourcepackagename compare not equal.
221
 
        """
222
 
 
223
 
    def delete():
224
 
        """Delete the persistent DSP if it exists.
225
 
 
226
 
        :return: True if a persistent object was removed, otherwise False.
227
 
        """
 
208
        Distro sourcepackages compare not equal if either of their distribution
 
209
        or sourcepackagename compare not equal.
 
210
        """
 
211