~launchpad-pqm/launchpad/devel

« back to all changes in this revision

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

[r=jcsackett][bug=801388] Ensure the person picker only shows "assign
        me" and "remove assignee" links when required.

Show diffs side-by-side

added added

removed removed

Lines of Context:
106
106
from lp.code.model.branchtarget import PersonBranchTarget
107
107
from lp.code.model.sourcepackagerecipe import get_buildable_distroseries_set
108
108
from lp.registry.interfaces.series import SeriesStatus
 
109
from lp.services.fields import PersonChoice
109
110
from lp.services.propertycache import cachedproperty
110
111
from lp.soyuz.model.archive import Archive
111
112
 
840
841
            self.form_fields = self.form_fields.omit('daily_build_archive')
841
842
 
842
843
            owner_field = self.schema['owner']
843
 
            any_owner_choice = Choice(
 
844
            any_owner_choice = PersonChoice(
844
845
                __name__='owner', title=owner_field.title,
845
846
                description=(u"As an administrator you are able to reassign"
846
847
                             u" this branch to any person or team."),