Ver código fonte

Add uuid for tracim instance in config

Guénaël Muller 6 anos atrás
pai
commit
988380f6bd
2 arquivos alterados com 5 adições e 0 exclusões
  1. 2 0
      tracim/development.ini.base
  2. 3 0
      tracim/tracim/config/app_cfg.py

+ 2 - 0
tracim/development.ini.base Ver arquivo

@@ -35,6 +35,8 @@ full_stack = true
35 35
 # Fallback language if browser and tracim can't find one they agree on.
36 36
 i18n.lang = en
37 37
 
38
+tracim_instance.uuid = 79160afe-e324-473a-9aef-7b93f69c1c1b
39
+
38 40
 cache_dir = %(here)s/data
39 41
 # preview generator cache directory
40 42
 preview_cache_dir = /tmp/tracim/preview/

+ 3 - 0
tracim/tracim/config/app_cfg.py Ver arquivo

@@ -217,6 +217,9 @@ class CFG(object):
217 217
         """Parse configuration file."""
218 218
         mandatory_msg = \
219 219
             'ERROR: {} configuration is mandatory. Set it before continuing.'
220
+        self.TRACIM_INSTANCE_UUID = tg.config.get(
221
+            'tracim_instance.uuid',
222
+        )
220 223
         self.DEPOT_STORAGE_DIR = tg.config.get(
221 224
             'depot_storage_dir',
222 225
         )