Initial updates to convert document indexing app to new registry and icon system

This commit is contained in:
Roberto Rosario
2012-09-24 17:36:01 -04:00
parent 46fb8dfc10
commit 5982c1b2ee
10 changed files with 133 additions and 98 deletions

View File

@@ -8,18 +8,18 @@ from django.db.models import Q
from metadata.classes import MetadataClass
from .models import Index, IndexInstanceNode, DocumentRenameCount
from .conf.settings import (AVAILABLE_INDEXING_FUNCTIONS,
MAX_SUFFIX_COUNT, SLUGIFY_PATHS)
#from .conf.settings import (AVAILABLE_INDEXING_FUNCTIONS,
# MAX_SUFFIX_COUNT, SLUGIFY_PATHS)
from .filesystem import (fs_create_index_directory,
fs_create_document_link, fs_delete_document_link,
fs_delete_index_directory, assemble_suffixed_filename)
from .exceptions import MaxSuffixCountReached
if SLUGIFY_PATHS == False:
# Do not slugify path or filenames and extensions
SLUGIFY_FUNCTION = lambda x: x
else:
SLUGIFY_FUNCTION = slugify
#if SLUGIFY_PATHS == False:
# # Do not slugify path or filenames and extensions
# SLUGIFY_FUNCTION = lambda x: x
#else:
SLUGIFY_FUNCTION = slugify
# External functions