Commit 91ee0a0f authored by Romain Loth's avatar Romain Loth

comments for constants.py

parent 30161f63
"""
# WARNING: to ensure consistency and retrocompatibility, lists should keep the # WARNING: to ensure consistency and retrocompatibility, lists should keep the
# initial order (ie., new elements should be appended at the end of the lists) # initial order (ie., new elements should be appended at the end of the lists)
abstract:
---------
something between global params, constants,
configuration variables, ini file...
contents:
---------
+ db constants/ontology
- nodetypes
(db int <=> named types <=> python code)
+ input low-level limits
- query size
- max upload size
- doc parsing batch size
- word extraction batch size
+ process config
- resourcetypes config (~ input ontology)
- wordlist generation params
- graph creation params
- £TODO sequence of transformations "custom pipeline"
+ input process subclasses/subroutines
- crawling, import
- tagger services and functions
- parser services
- stemmer services
"""
import os
import re
import importlib import importlib
from gargantext.util.lists import * from gargantext.util.lists import *
from gargantext.util.tools import datetime, convert_to_date from gargantext.util.tools import datetime, convert_to_date
import re from .settings import BASE_DIR
# types & models (nodes, lists, hyperdata, resource) --------------------------------------------- # types & models (nodes, lists, hyperdata, resource) ---------------------------------------------
LISTTYPES = { LISTTYPES = {
...@@ -330,8 +366,6 @@ DEFAULT_CSV_DELIM_GROUP = '|&|' ...@@ -330,8 +366,6 @@ DEFAULT_CSV_DELIM_GROUP = '|&|'
# Files ---------------------------------------------------------------- # Files ----------------------------------------------------------------
import os
from .settings import BASE_DIR
# uploads/.gitignore prevents corpora indexing # uploads/.gitignore prevents corpora indexing
# copora can be either a folder or symlink towards specific partition # copora can be either a folder or symlink towards specific partition
UPLOAD_DIRECTORY = os.path.join(BASE_DIR, 'uploads/corpora') UPLOAD_DIRECTORY = os.path.join(BASE_DIR, 'uploads/corpora')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment