Преглед изворни кода

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