PEP8 cleanups

This commit is contained in:
Roberto Rosario
2015-06-24 17:11:24 -04:00
parent dd9b196110
commit 48df3dcafa
20 changed files with 24 additions and 82 deletions

View File

@@ -1,7 +1,5 @@
from __future__ import absolute_import, unicode_literals
import tempfile
from django.utils.translation import ugettext_lazy as _
from actstream import registry
@@ -15,7 +13,7 @@ from common import (
from common.api import register_maintenance_links
from common.classes import ModelAttribute
from common.signals import post_initial_setup
from common.utils import encapsulate, validate_path
from common.utils import encapsulate
from converter.links import link_transformation_list
from converter.permissions import (
PERMISSION_TRANSFORMATION_CREATE,
@@ -74,10 +72,6 @@ class DocumentsApp(MayanAppConfig):
def ready(self):
super(DocumentsApp, self).ready()
# TODO: validate cache_path or create new
#if (not validate_path(document_settings.CACHE_PATH)) or (not document_settings.CACHE_PATH):
# setattr(document_settings, 'CACHE_PATH', tempfile.mkdtemp())
APIEndPoint('documents')
MissingItem(label=_('Create a document type'), description=_('Every uploaded document must be assigned a document type, it is the basic way Mayan EDMS categorizes documents.'), condition=lambda: not DocumentType.objects.exists(), view='documents:document_type_list')