~launchpad-pqm/launchpad/devel

« back to all changes in this revision

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

[r=abentley][bug=801388,
        806179] Re-lands wallyworlds fix to keep the assign me button from
        appearing in goofy places,
        and fixes a problem that prevented personpickers from rendering.

Show diffs side-by-side

added added

removed removed

Lines of Context:
70
70
    LaunchpadRadioWidgetWithDescription,
71
71
    )
72
72
from lp.app.widgets.owner import HiddenUserWidget
 
73
from lp.app.widgets.popup import PersonPickerWidget
73
74
from lp.registry.browser.branding import BrandingChangeView
74
75
from lp.registry.interfaces.mailinglist import (
75
76
    IMailingList,
983
984
            failed_names = [person.displayname for person in failed_joins]
984
985
            failed_list = ", ".join(failed_names)
985
986
 
986
 
            mapping=dict(
987
 
                this_team=target_team.displayname,
 
987
            mapping = dict( this_team=target_team.displayname,
988
988
                failed_list=failed_list)
989
989
 
990
990
            if len(failed_joins) == 1:
1034
1034
 
1035
1035
    schema = ITeamMember
1036
1036
    label = "Select the new member"
 
1037
    # XXX: jcsackett 5.7.2011 bug=799847 The assignment of 'false' to the vars
 
1038
    # below should be changed to the more appropriate False bool when we're
 
1039
    # making use of the JSON cache to setup pickers, rather than assembling
 
1040
    # javascript in a view macro.
 
1041
    custom_widget(
 
1042
        'newmember', PersonPickerWidget,
 
1043
        show_assign_me_button='false', show_remove_button='false')
1037
1044
 
1038
1045
    @property
1039
1046
    def page_title(self):