Package WholeCellKB :: Package public :: Module forms :: Class ExportDataForm
[hide private]
[frames] | no frames]

Class ExportDataForm

source code


Instance Methods [hide private]
 
__init__(self, is_public, *args, **kwargs) source code
Class Variables [hide private]
  FORMAT_CHOICES = 'bib', 'BibTex', ('xlsx', 'Excel'), ('html', ...
  species = forms.ChoiceField(required= False, widget= forms.Rad...
  model_type = forms.MultipleChoiceField(required= False, widget...
  all_model_types = forms.ChoiceField(choices= (('True', 'All'),...
  format = forms.ChoiceField(choices= FORMAT_CHOICES, initial= F...
Class Variable Details [hide private]

FORMAT_CHOICES

Value:
'bib', 'BibTex', ('xlsx', 'Excel'), ('html', 'HTML'), ('json', 'JSON')\
, ('pdf', 'PDF'), ('xml', 'XML'),

species

Value:
forms.ChoiceField(required= False, widget= forms.RadioSelect, label= '\
species', help_text= 'Select species to export')

model_type

Value:
forms.MultipleChoiceField(required= False, widget= forms.CheckboxSelec\
tMultiple, label= 'type', help_text= 'Select entry types to export')

all_model_types

Value:
forms.ChoiceField(choices= (('True', 'All'),), required= False, widget\
= forms.RadioSelect, label= 'All', help_text= 'Select all entry types'\
)

format

Value:
forms.ChoiceField(choices= FORMAT_CHOICES, initial= FORMAT_CHOICES [0]\
 [0], required= True, widget= forms.RadioSelect, label= 'format', help\
_text= 'Select an output format')