# which revision to update/share
target_revision = forms.RegexField('[0-9a-f]{40}')
# any additional comments that user wants to add to the change
# which revision to update/share
target_revision = forms.RegexField('[0-9a-f]{40}')
# any additional comments that user wants to add to the change
class DocumentUploadForm(forms.Form):
ocr_file = forms.FileField(label='Source OCR file', required=False)
ocr_data = forms.CharField(widget=forms.HiddenInput(), required=False)
bookname = forms.RegexField(regex=r'[0-9\.\w_-]+', \
class DocumentUploadForm(forms.Form):
ocr_file = forms.FileField(label='Source OCR file', required=False)
ocr_data = forms.CharField(widget=forms.HiddenInput(), required=False)
bookname = forms.RegexField(regex=r'[0-9\.\w_-]+', \
generate_dc = forms.BooleanField(required=False, \
initial=True, label=u"Generate DublinCore template")
generate_dc = forms.BooleanField(required=False, \
initial=True, label=u"Generate DublinCore template")