Fixed several DC/split related bugs. No autocopy of DC for now.
[redakcja.git] / apps / api / forms.py
1 # -*- encoding: utf-8 -*-
2
3 __author__= "Ɓukasz Rekucki"
4 __date__ = "$2009-09-20 21:34:52$"
5 __doc__ = "Micro-forms for the API."
6
7
8 from django import forms
9
10 class DocumentGetForm(forms.Form):
11     autocabinet = forms.BooleanField(required=False)
12
13
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')
18     
19     generate_dc = forms.BooleanField(required=False, initial=True, label=u"Generate DublinCore template")
20