Code style cleanups

Add keyword arguments. Sort arguments and models.
Move literals to their own module. Prepend handler_ to
signal handlers.

Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com>
This commit is contained in:
Roberto Rosario
2019-04-26 03:32:35 -04:00
parent 20acc24c7f
commit 74c97314d7
160 changed files with 1029 additions and 972 deletions

View File

@@ -5,16 +5,16 @@ from django.utils.translation import ugettext_lazy as _
from mayan.apps.permissions import PermissionNamespace
namespace = PermissionNamespace(
name='document_parsing', label=_('Document parsing')
label=_('Document parsing'), name='document_parsing'
)
permission_content_view = namespace.add_permission(
name='content_view', label=_('View the content of a document')
label=_('View the content of a document'), name='content_view'
)
permission_document_type_parsing_setup = namespace.add_permission(
name='document_type_setup',
label=_('Change document type parsing settings')
label=_('Change document type parsing settings'),
name='document_type_setup'
)
permission_parse_document = namespace.add_permission(
name='parse_document', label=_('Parse the content of a document')
label=_('Parse the content of a document'), name='parse_document'
)