summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJan Pokorný <jpokorny@redhat.com>2014-09-05 21:01:05 +0200
committerJan Pokorný <jpokorny@redhat.com>2014-09-05 21:01:05 +0200
commit08c41315db0c011a3457f986e67484860ffad051 (patch)
treeaf2e6e843ee1bdcb66718e62b10e48910ac5830e
parentbed458726ed9399086b8abe7bbf13c39873247d6 (diff)
downloadclufter-08c41315db0c011a3457f986e67484860ffad051.tar.gz
clufter-08c41315db0c011a3457f986e67484860ffad051.tar.xz
clufter-08c41315db0c011a3457f986e67484860ffad051.zip
filters/xml2simpleconfig: add a note wrt. non-bijectivity
Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
-rw-r--r--filters/xml2simpleconfig.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/filters/xml2simpleconfig.py b/filters/xml2simpleconfig.py
index ae3df11..19fc774 100644
--- a/filters/xml2simpleconfig.py
+++ b/filters/xml2simpleconfig.py
@@ -13,6 +13,8 @@ from lxml import etree
def xml2simpleconfig(flt_ctxt, in_obj):
"""Mapping (almost bijective) XML -> simpleconfig
+ Inverse mapping cannot be generally loseless, as XML cannot contain
+ repeated attributes, which seems/is valid with simpleconfig.
See `simpleconfig` docstring for details about the target representation.
"""
# using similar trick of stack emulation in-place as command.analyse_chain.