1 # -*- encoding: utf-8 -*-
3 __author__= "Ćukasz Rekucki"
4 __date__ = "$2009-09-20 21:34:52$"
5 __doc__ = "Micro-forms for the API."
8 from django import forms
10 class DocumentGetForm(forms.Form):
11 autocabinet = forms.BooleanField(required=False)
14 class DocumentUploadForm(forms.Form):
15 ocr = forms.FileField(label='Source OCR file')
16 bookname = forms.RegexField(regex=r'[0-9\.\w_-]+', \
17 label='Publication name', help_text='Example: slowacki-beniowski')
19 generate_dc = forms.BooleanField(required=False, initial=True, label=u"Generate DublinCore template")