~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/app/widgets/popup.py

[r=bac][bug=799847] Relands form-macro cleanup,
        while fixing previous bad conflict resolution.

Show diffs side-by-side

added added

removed removed

Lines of Context:
32
32
    # Provide default values for the following properties in case someone
33
33
    # creates a vocab picker for a person instead of using the derived
34
34
    # PersonPicker.
35
 
    show_assign_me_button = 'false'
36
 
    show_remove_button = 'false'
 
35
    show_assign_me_button = False
 
36
    show_remove_button = False
37
37
    assign_me_text = 'Pick me'
38
38
    remove_person_text = 'Remove person'
39
39
    remove_team_text = 'Remove team'
123
123
            remove_person_text=self.remove_person_text,
124
124
            remove_team_text=self.remove_team_text,
125
125
            show_remove_button=self.show_remove_button,
126
 
            show_assign_me_button=self.show_assign_me_button)
 
126
            show_assign_me_button=self.show_assign_me_button,
 
127
            vocabulary_name=self.vocabulary_name,
 
128
            input_element=self.input_id)
127
129
 
128
130
    @property
129
131
    def json_config(self):
189
191
class PersonPickerWidget(VocabularyPickerWidget):
190
192
 
191
193
    include_create_team_link = False
192
 
    show_assign_me_button = 'true'
193
 
    show_remove_button = 'true'
 
194
    show_assign_me_button = True
 
195
    show_remove_button = True
194
196
 
195
197
    @property
196
198
    def picker_type(self):