misc: always expand lists used as widget options (#36515)
This commit is contained in:
parent
71f4a0fd3e
commit
a97b93d163
|
@ -706,7 +706,7 @@ class FormDefPage(Directory):
|
|||
form.add(CheckboxesWidget, 'required_authentication_contexts',
|
||||
title=_('Required authentication contexts'),
|
||||
value=self.formdef.required_authentication_contexts,
|
||||
options=auth_contexts.items())
|
||||
options=list(auth_contexts.items()))
|
||||
form.add_submit('submit', _('Submit'))
|
||||
form.add_submit('cancel', _('Cancel'))
|
||||
if form.get_widget('cancel').parse():
|
||||
|
|
|
@ -144,7 +144,7 @@ class DispatchWorkflowStatusItem(WorkflowStatusItem):
|
|||
if 'dispatch_type' in parameters:
|
||||
form.add(RadiobuttonsWidget, '%sdispatch_type' % prefix,
|
||||
title=_('Dispatch Type'),
|
||||
options=dispatch_types.items(),
|
||||
options=list(dispatch_types.items()),
|
||||
value=self.dispatch_type,
|
||||
required=True,
|
||||
attrs={'data-dynamic-display-parent': 'true'})
|
||||
|
|
|
@ -333,7 +333,7 @@ class ExportToModel(WorkflowStatusItem):
|
|||
if 'method' in parameters:
|
||||
form.add(RadiobuttonsWidget, '%smethod' % prefix,
|
||||
title=_('Method'),
|
||||
options=methods.items(),
|
||||
options=list(methods.items()),
|
||||
value=self.method,
|
||||
attrs={'data-dynamic-display-parent': 'true'})
|
||||
|
||||
|
|
|
@ -62,7 +62,7 @@ class GeolocateWorkflowStatusItem(WorkflowStatusItem):
|
|||
if 'method' in parameters:
|
||||
form.add(RadiobuttonsWidget, '%smethod' % prefix,
|
||||
title=_('Method'),
|
||||
options=methods.items(),
|
||||
options=list(methods.items()),
|
||||
value=self.method,
|
||||
attrs={'data-dynamic-display-parent': 'true'})
|
||||
if 'address_string' in parameters:
|
||||
|
|
|
@ -187,7 +187,7 @@ class WebserviceCallStatusItem(WorkflowStatusItem):
|
|||
if 'method' in parameters:
|
||||
form.add(RadiobuttonsWidget, '%smethod' % prefix,
|
||||
title=_('Method'),
|
||||
options=methods.items(),
|
||||
options=list(methods.items()),
|
||||
value=self.method,
|
||||
attrs={'data-dynamic-display-parent': 'true'})
|
||||
if 'post' in parameters:
|
||||
|
@ -220,7 +220,7 @@ class WebserviceCallStatusItem(WorkflowStatusItem):
|
|||
form.widgets.append(HtmlWidget(htmltext('<h3>%s</h3>') % _('Response')))
|
||||
form.add(RadiobuttonsWidget, '%sresponse_type' % prefix,
|
||||
title=_('Response Type'),
|
||||
options=response_types.items(),
|
||||
options=list(response_types.items()),
|
||||
value=self.response_type,
|
||||
attrs={'data-dynamic-display-parent': 'true'})
|
||||
if 'varname' in parameters:
|
||||
|
|
|
@ -1083,7 +1083,7 @@ class WorkflowGlobalActionTimeoutTrigger(WorkflowGlobalActionTrigger):
|
|||
|
||||
def form(self, workflow):
|
||||
form = Form(enctype='multipart/form-data')
|
||||
options = self.get_anchor_labels().items()
|
||||
options = list(self.get_anchor_labels().items())
|
||||
form.add(SingleSelectWidget, 'anchor', title=_('Reference Date'),
|
||||
options=options, value=self.anchor, required=True,
|
||||
attrs={'data-dynamic-display-parent': 'true'})
|
||||
|
|
|
@ -236,7 +236,7 @@ class WsCallRequestWidget(CompositeWidget):
|
|||
])
|
||||
self.add(RadiobuttonsWidget, 'method',
|
||||
title=_('Method'),
|
||||
options=methods.items(),
|
||||
options=list(methods.items()),
|
||||
value=value.get('method') or 'GET',
|
||||
attrs={'data-dynamic-display-parent': 'true'})
|
||||
method_widget = self.get_widget('method')
|
||||
|
|
Loading…
Reference in New Issue