Add new app to handle all dependencies
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com>
This commit is contained in:
@@ -19,6 +19,7 @@ from mayan.apps.documents.signals import post_version_upload
|
||||
from mayan.apps.navigation.classes import SourceColumn
|
||||
from mayan.celery import app
|
||||
|
||||
from .dependencies import * # NOQA
|
||||
from .handlers import (
|
||||
handler_index_document, handler_initialize_new_parsing_settings,
|
||||
handler_parse_document_version
|
||||
|
||||
15
mayan/apps/document_parsing/dependencies.py
Normal file
15
mayan/apps/document_parsing/dependencies.py
Normal file
@@ -0,0 +1,15 @@
|
||||
from __future__ import unicode_literals
|
||||
|
||||
from django.utils.translation import ugettext_lazy as _
|
||||
|
||||
from mayan.apps.dependencies.classes import BinaryDependency
|
||||
|
||||
from .settings import setting_pdftotext_path
|
||||
|
||||
BinaryDependency(
|
||||
help_text=_(
|
||||
'Utility from the poppler-utils package used to text content '
|
||||
'from PDF files.'
|
||||
), label='PDF to text', module=__name__, name='pdftotext',
|
||||
path=setting_pdftotext_path.value
|
||||
)
|
||||
Reference in New Issue
Block a user