浏览代码

Add uuid for tracim instance in config

Guénaël Muller 6 年前
父节点
当前提交
988380f6bd
共有 2 个文件被更改,包括 5 次插入0 次删除
  1. 2 0
      tracim/development.ini.base
  2. 3 0
      tracim/tracim/config/app_cfg.py

+ 2 - 0
tracim/development.ini.base 查看文件

@@ -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 查看文件

@@ -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
         )