0001-admin-make-it-possible-to-reset-formdef-function-bac.patch
wcs/admin/forms.py | ||
---|---|---|
267 | 267 |
self.formdef.workflow_roles = {} |
268 | 268 |
role_id = self.formdef.workflow_roles.get(component) |
269 | 269 | |
270 |
options = [(None, '---', None)] |
|
271 |
options.extend(get_user_roles()) |
|
270 | 272 |
form = Form(enctype='multipart/form-data') |
271 |
form.add(SingleSelectWidget, 'role_id', |
|
272 |
value=role_id, |
|
273 |
options = get_user_roles()) |
|
273 |
form.add(SingleSelectWidget, 'role_id', value=role_id, options=options) |
|
274 | 274 |
form.add_submit('submit', _('Submit')) |
275 | 275 |
form.add_submit('cancel', _('Cancel')) |
276 | 276 |
if form.get_widget('cancel').parse(): |
277 |
- |