diff configmix/config.py @ 432:b96f49c9c76b

Proper "repr()" for a jailed configuration: put the root path into the output
author Franz Glasner <fzglas.hg@dom66.de>
date Thu, 09 Dec 2021 22:51:10 +0100
parents 090a25f36a3d
children bbc5b64e137a
line wrap: on
line diff
--- a/configmix/config.py	Thu Dec 09 22:50:26 2021 +0100
+++ b/configmix/config.py	Thu Dec 09 22:51:10 2021 +0100
@@ -28,7 +28,7 @@
     from urlparse import urlsplit
 
 from .variables import lookup_varns, lookup_filter
-from .compat import u, uchr
+from .compat import u, uchr, n
 from .constants import REF_NAMESPACE, NONE_FILTER, EMPTY_FILTER
 
 
@@ -894,3 +894,7 @@
         if bind_root:
             sjc.rebind(self._base)
         return sjc
+
+    def __repr__(self):
+        r = "_JailedConfiguration(rootpath=%s)" % n(repr(self._path))
+        return r