equal
deleted
inserted
replaced
32 from soc.views.helper import access |
32 from soc.views.helper import access |
33 from soc.views.helper import dynaform |
33 from soc.views.helper import dynaform |
34 from soc.views.helper import redirects |
34 from soc.views.helper import redirects |
35 |
35 |
36 |
36 |
37 LIST_DESCRIPTION_FMT = ugettext_lazy( |
37 DEF_LIST_DESCRIPTION_FMT = ugettext_lazy( |
38 'List of %(name_plural)s in Google Open Source Programs.') |
38 'List of %(name_plural)s in Google Open Source Programs.') |
|
39 |
|
40 DEF_CREATE_INSTRUCTION_MSG_FMT = ugettext_lazy( |
|
41 'Please use this form to select a %(name).') |
39 |
42 |
40 DEF_SUBMIT_MSG_PARAM_NAME = 's' |
43 DEF_SUBMIT_MSG_PARAM_NAME = 's' |
41 DEF_SUBMIT_MSG_PROFILE_SAVED = 0 |
44 DEF_SUBMIT_MSG_PROFILE_SAVED = 0 |
42 |
45 |
43 |
46 |
134 'list_pagination': 'pagination', |
137 'list_pagination': 'pagination', |
135 'list_row': 'row', |
138 'list_row': 'row', |
136 'list_heading': 'heading', |
139 'list_heading': 'heading', |
137 } |
140 } |
138 |
141 |
139 new_params['list_description'] = LIST_DESCRIPTION_FMT % params |
142 new_params['list_description'] = DEF_LIST_DESCRIPTION_FMT % params |
140 new_params['save_message'] = [ugettext_lazy('Profile saved.')] |
143 new_params['save_message'] = [ugettext_lazy('Profile saved.')] |
141 new_params['submit_msg_param_name'] = DEF_SUBMIT_MSG_PARAM_NAME |
144 new_params['submit_msg_param_name'] = DEF_SUBMIT_MSG_PARAM_NAME |
142 new_params['edit_params'] = { |
145 new_params['edit_params'] = { |
143 DEF_SUBMIT_MSG_PARAM_NAME: DEF_SUBMIT_MSG_PROFILE_SAVED, |
146 DEF_SUBMIT_MSG_PARAM_NAME: DEF_SUBMIT_MSG_PROFILE_SAVED, |
144 } |
147 } |