X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/8d62c0c82718b59c077b611fca1cd9f8054a8c41..b2d72160e2a68991c66ea6017b871d7f42c0b29d:/apps/api/forms.py?ds=sidebyside diff --git a/apps/api/forms.py b/apps/api/forms.py new file mode 100644 index 00000000..2b09e178 --- /dev/null +++ b/apps/api/forms.py @@ -0,0 +1,20 @@ +# -*- encoding: utf-8 -*- + +__author__= "Łukasz Rekucki" +__date__ = "$2009-09-20 21:34:52$" +__doc__ = "Micro-forms for the API." + + +from django import forms + +class DocumentGetForm(forms.Form): + autocabinet = forms.BooleanField(required=False) + + +class DocumentUploadForm(forms.Form): + ocr = forms.FileField(label='Source OCR file') + bookname = forms.RegexField(regex=r'[0-9\.\w_-]+', \ + label='Publication name', help_text='Example: slowacki-beniowski') + + generate_dc = forms.BooleanField(required=False, initial=True, label=u"Generate DublinCore template") +