def export_action_form_factory(formats):
 class _ExportActionForm(ActionForm, ):
  u'\n        Action form with export format ChoiceField.\n        '
  file_format = forms.ChoiceField(label=_(u'Format'), choices=formats, required=False)
 _ExportActionForm.__name__ = str(u'ExportActionForm')
 return _ExportActionForm

def export_action_form_factory ( formats ) : class _ExportActionForm ( ActionForm , ) : file_format = forms . ChoiceField ( label = _ ( u'Format' ) , choices = formats , required = False ) _ExportActionForm . __name__ = str ( u'ExportActionForm' ) return _ExportActionForm
returns an actionform subclass containing a choicefield populated with the given formats .