~launchpad-pqm/launchpad/devel

« back to all changes in this revision

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

  • Committer: Launchpad Patch Queue Manager
  • Date: 2011-07-22 05:56:29 UTC
  • mfrom: (13492.1.1 revert-r13485)
  • Revision ID: launchpad@pqm.canonical.com-20110722055629-0y8ss6zvhjcoo12r
[r=wgrant][rollback=13485] Revert r13485. It prevents form pickers
 from being attached to their text widgets.

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,
127
 
            vocabulary_name=self.vocabulary_name,
128
 
            input_element=self.input_id)
 
126
            show_assign_me_button=self.show_assign_me_button)
129
127
 
130
128
    @property
131
129
    def json_config(self):
191
189
class PersonPickerWidget(VocabularyPickerWidget):
192
190
 
193
191
    include_create_team_link = False
194
 
    show_assign_me_button = True
195
 
    show_remove_button = True
 
192
    show_assign_me_button = 'true'
 
193
    show_remove_button = 'true'
196
194
 
197
195
    @property
198
196
    def picker_type(self):