def export_action_form_factory(formats):
class _ExportActionForm(ActionForm):<EOL><INDENT>"""<STR_LIT>"""<EOL>file_format = forms.ChoiceField(<EOL>label=_('<STR_LIT>'), choices=formats, required=False)<EOL><DEDENT>_ExportActionForm.__name__ = str('<STR_LIT>')<EOL>return _ExportActionForm<EOL>
Returns an ActionForm subclass containing a ChoiceField populated with
the given formats.