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,10 +8,12 @@ from mptt.fields import TreeForeignKey
from documents.models import Document, DocumentType
from .conf.settings import AVAILABLE_INDEXING_FUNCTIONS
#from .conf.settings import AVAILABLE_INDEXING_FUNCTIONS
available_indexing_functions_string = (_(u'Available functions: %s') % u','.join([u'%s()' % name for name, function in AVAILABLE_INDEXING_FUNCTIONS.items()])) if AVAILABLE_INDEXING_FUNCTIONS else u''
#available_indexing_functions_string = (_(u'Available functions: %s') % u','.join([u'%s()' % name for name, function in AVAILABLE_INDEXING_FUNCTIONS.items()])) if AVAILABLE_INDEXING_FUNCTIONS else u''
#TODO: fix settings
#TODO: add natural key support
class Index(models.Model):
name = models.CharField(unique=True, max_length=64, verbose_name=_(u'name'), help_text=_(u'Internal name used to reference this index.'))