소스 검색

Display config set in logs even if URL in name when it is str

Bastien Sevajol (Algoo) 8 년 전
부모
커밋
7622ccf6b2
1개의 변경된 파일3개의 추가작업 그리고 1개의 파일을 삭제
  1. 3 1
      tracim/tracim/config/app_cfg.py

+ 3 - 1
tracim/tracim/config/app_cfg.py 파일 보기

@@ -173,7 +173,9 @@ class CFG(object):
173 173
         :param value:
174 174
         :return:
175 175
         """
176
-        if 'PASSWORD' not in key and 'URL' not in key and 'CONTENT' not in key:
176
+        if 'PASSWORD' not in key and \
177
+                ('URL' not in key or type(value) == str) and \
178
+                'CONTENT' not in key:
177 179
             # We do not show PASSWORD for security reason
178 180
             # we do not show URL because the associated config uses tg.lurl() which is evaluated when at display time.
179 181
             # At the time of configuration setup, it can't be evaluated