Source code for swissvotes.forms.votes

from onegov.form import Form
from onegov.swissvotes import _
from onegov.swissvotes.fields import SwissvoteDatasetField
from onegov.swissvotes.fields import SwissvoteMetadataField
from wtforms.validators import DataRequired


[docs] class UpdateDatasetForm(Form):
[docs] callout = _('Updating the dataset may take some time.')
[docs] dataset = SwissvoteDatasetField( label=_('Dataset'), validators=[ DataRequired() ] )
[docs] class UpdateMetadataForm(Form):
[docs] callout = _('Updating the metadata may take some time.')
[docs] metadata = SwissvoteMetadataField( label=_('Metadata'), validators=[ DataRequired() ] )