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>
19 lines
659 B
Python
19 lines
659 B
Python
from __future__ import absolute_import, unicode_literals
|
|
|
|
from django.utils.translation import ugettext_lazy as _
|
|
|
|
from mayan.apps.permissions import PermissionNamespace
|
|
|
|
namespace = PermissionNamespace(label=_('Document parsing'), name='document_parsing')
|
|
|
|
permission_content_view = namespace.add_permission(
|
|
label=_('View the content of a document'), name='content_view'
|
|
)
|
|
permission_document_type_parsing_setup = namespace.add_permission(
|
|
label=_('Change document type parsing settings'),
|
|
name='document_type_setup'
|
|
)
|
|
permission_parse_document = namespace.add_permission(
|
|
label=_('Parse the content of a document'), name='parse_document'
|
|
)
|