~launchpad-pqm/launchpad/devel

« back to all changes in this revision

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

  • Committer: Launchpad Patch Queue Manager
  • Date: 2011-07-28 17:34:34 UTC
  • mfrom: (13506.9.10 dsp-vocab-contracts)
  • Revision ID: launchpad@pqm.canonical.com-20110728173434-xm8jb9xmnhjuzb0i
[r=jcsackett][bug=817066] Fix DSP vocabs contract with
 IHugeVocabulary and its widgets. Added IDistribution adapters.

Show diffs side-by-side

added added

removed removed

Lines of Context:
4
4
__metaclass__ = type
5
5
 
6
6
__all__ = [
7
 
    'distribution_from_distributionsourcepackage',
8
7
    'DistributionSourcePackageAnswersMenu',
9
8
    'DistributionSourcePackageBreadcrumb',
10
9
    'DistributionSourcePackageChangelogView',
28
27
    getUtility,
29
28
    )
30
29
from zope.interface import (
31
 
    implementer,
32
30
    implements,
33
31
    Interface,
34
32
    )
116
114
            self.context.sourcepackagename.name)
117
115
 
118
116
 
119
 
@adapter(IDistributionSourcePackage)
120
 
@implementer(IServiceUsage)
121
 
def distribution_from_distributionsourcepackage(dsp):
122
 
    return dsp.distribution
123
 
 
124
 
 
125
117
class DistributionSourcePackageFacets(QuestionTargetFacetMixin,
126
118
                                      StandardLaunchpadFacets):
127
119