Update URL parameters to the "_id" forms. Add keyword arguments. Remove use of is_path in the DOCUMENT_PARSING_PDFTOTEXT_PATH setting. Signed-off-by: Roberto Rosario <Roberto.Rosario@mayan-edms.com>
25 lines
743 B
Python
25 lines
743 B
Python
from __future__ import unicode_literals
|
|
|
|
from django.utils.translation import ugettext_lazy as _
|
|
|
|
from mayan.apps.smart_settings import Namespace
|
|
|
|
from .literals import DEFAULT_PDFTOTEXT_PATH
|
|
|
|
namespace = Namespace(label=_('Document parsing'), name='document_parsing')
|
|
|
|
setting_auto_parsing = namespace.add_setting(
|
|
global_name='DOCUMENT_PARSING_AUTO_PARSING', default=True,
|
|
help_text=_(
|
|
'Set new document types to perform parsing automatically by default.'
|
|
)
|
|
)
|
|
setting_pdftotext_path = namespace.add_setting(
|
|
global_name='DOCUMENT_PARSING_PDFTOTEXT_PATH',
|
|
default=DEFAULT_PDFTOTEXT_PATH,
|
|
help_text=_(
|
|
'File path to poppler\'s pdftotext program used to extract text '
|
|
'from PDF files.'
|
|
),
|
|
)
|