~launchpad-pqm/launchpad/devel

« back to all changes in this revision

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

  • Committer: Steve Kowalik
  • Date: 2011-08-07 04:05:52 UTC
  • mto: This revision was merged to the branch mainline in revision 13626.
  • Revision ID: stevenk@ubuntu.com-20110807040552-mwnxo0flmhvl35e8
Correct the notification based on review comments, and remove request{,ed}
from the function names, switching to create{,d}.

Show diffs side-by-side

added added

removed removed

Lines of Context:
30
30
    TextLine,
31
31
    )
32
32
 
33
 
from lp import _
 
33
from canonical.launchpad import _
34
34
from lp.answers.interfaces.questiontarget import IQuestionTarget
35
35
from lp.bugs.interfaces.bugtarget import (
36
36
    IBugTarget,
45
45
    IHasMergeProposals,
46
46
    )
47
47
from lp.registry.interfaces.distribution import IDistribution
48
 
from lp.registry.interfaces.role import IHasDrivers
49
48
from lp.soyuz.enums import ArchivePurpose
50
49
 
51
50
 
52
51
class IDistributionSourcePackage(IBugTarget, IHasBranches, IHasMergeProposals,
53
52
                                 IHasOfficialBugTags,
54
53
                                 IStructuralSubscriptionTarget,
55
 
                                 IQuestionTarget, IHasDrivers):
 
54
                                 IQuestionTarget):
56
55
    """Represents a source package in a distribution.
57
56
 
58
57
    Create IDistributionSourcePackages by invoking
83
82
            # interfaces/product.py.
84
83
            schema=Interface))
85
84
 
86
 
    is_official = Attribute(
87
 
        'Is this source package officially in the distribution?')
88
 
 
89
85
    summary = Attribute(
90
86
        'The summary of binary packages built from this package')
91
87
 
92
 
    binary_names = Attribute(
93
 
        'A list of binary package names built from this package.')
94
 
 
95
88
    currentrelease = Attribute(
96
89
        "The latest published `IDistributionSourcePackageRelease` of a "
97
90
        "source package with this name in the distribution or distroseries, "
123
116
        "Number of translations matching the distribution and "
124
117
        "sourcepackagename of the IDistributionSourcePackage.")
125
118
 
126
 
    drivers = Attribute("The drivers for the distribution.")
127
 
 
128
119
    def getReleasesAndPublishingHistory():
129
120
        """Return a list of all releases of this source package in this
130
121
        distribution and their corresponding publishing history.
219
210
        Distro sourcepackages compare not equal if either of their
220
211
        distribution or sourcepackagename compare not equal.
221
212
        """
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
 
        """