~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/code/browser/sourcepackagerecipe.py

  • Committer: Launchpad Patch Queue Manager
  • Date: 2011-10-24 22:37:38 UTC
  • mfrom: (14185.1.9 bug-833384)
  • Revision ID: launchpad@pqm.canonical.com-20111024223738-jpqt7zmk72ogiyxb
[r=sinzui][bug=833384] Expose source package changelogs through the
        API.

Show diffs side-by-side

added added

removed removed

Lines of Context:
111
111
from lp.code.model.branchtarget import PersonBranchTarget
112
112
from lp.code.model.sourcepackagerecipe import get_buildable_distroseries_set
113
113
from lp.registry.interfaces.series import SeriesStatus
114
 
from lp.services.features import getFeatureFlag
115
114
from lp.services.fields import PersonChoice
116
115
from lp.services.propertycache import cachedproperty
117
116
from lp.soyuz.interfaces.archive import ArchiveDisabled
258
257
 
259
258
    @property
260
259
    def person_picker(self):
261
 
        # If we are using the enhanced picker, we need to ensure the vocab
262
 
        # gives us terms showing just the displyname rather than displayname
263
 
        # plus Luanchpad id since the enhanced picker provides this extra
264
 
        # information itself.
265
 
        enhanced_picker_enabled = bool(
266
 
                    getFeatureFlag('disclosure.picker_enhancements.enabled'))
267
 
        if enhanced_picker_enabled:
268
 
            vocabulary = 'UserTeamsParticipationPlusSelfSimpleDisplay'
269
 
        else:
270
 
            vocabulary = 'UserTeamsParticipationPlusSelf'
271
260
        field = copy_field(
272
 
            ISourcePackageRecipe['owner'], vocabularyName=vocabulary)
 
261
            ISourcePackageRecipe['owner'],
 
262
            vocabularyName='UserTeamsParticipationPlusSelfSimpleDisplay')
273
263
        return InlinePersonEditPickerWidget(
274
264
            self.context, field,
275
265
            format_link(self.context.owner),