Update the document type auto ocr value to be defined at runtime by turning it into a setting.

This commit is contained in:
Roberto Rosario
2015-09-06 04:00:37 -04:00
parent a1d8f34e69
commit f59b96ac5e
2 changed files with 10 additions and 1 deletions

View File

@@ -21,3 +21,9 @@ setting_ocr_backend = namespace.add_setting(
global_name='OCR_BACKEND', default='ocr.backends.tesseract.Tesseract',
help_text=_('Full path to the backend to be used to do OCR.')
)
setting_auto_ocr = namespace.add_setting(
global_name='OCR_AUTO_OCR', default=True,
help_text=_(
'Set new document types to perform OCR automatically by default.'
)
)