branch | 3.25 |
changeset 12134 | 0bf232be21a6 |
parent 12133 | 8743c3bda480 |
child 12146 | d540defa0591 |
--- a/cubicweb/entities/sources.py Wed Apr 05 08:37:22 2017 +0200 +++ b/cubicweb/entities/sources.py Wed Apr 05 13:28:33 2017 +0200 @@ -31,9 +31,12 @@ class _CWSourceCfgMixIn(object): + @property def dictconfig(self): - return self.config and text_to_dict(self.config) or {} + if not self.config: + return {} + return text_to_dict(self.config) class CWSource(_CWSourceCfgMixIn, AnyEntity):