summaryrefslogtreecommitdiffstats
path: root/utils_xml.py
Commit message (Collapse)AuthorAgeFilesLines
* utils_xml: xmltag_get_{localname,namespace}: make more robustJan Pokorný2015-05-291-2/+7
| | | | Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* utils_xml: skip extending with None nonstring arg in nselemJan Pokorný2015-03-041-2/+2
| | | | | | Related to "script" RA ccs2pcs conversion provided by Patrik Hagara. Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* utils_xml: nselem: allow to add children/text at onceJan Pokorný2014-10-211-2/+11
| | | | | | | Key is simple: instance of basestring will contribute on the associated text, other positional arguments are supposed the child nodes. Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* utils_xml: element_juggler: cope with root elementsJan Pokorný2014-10-211-2/+6
| | | | Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* utils_xml: drop an import no longer in useJan Pokorný2014-10-211-1/+0
| | | | Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* utils_xml: have the namespaces represented as symbols, tooJan Pokorný2014-10-211-7/+12
| | | | | | + propagate actually use these symbols Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* utils_xslt: dedicated to XSLT related helpersJan Pokorný2014-10-081-8/+0
| | | | | | Also move xslt_identity from utils_xml to utils_xslt. Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* filter: interactive "try_edit" as a part of validate_hookJan Pokorný2014-06-191-0/+1
| | | | | | | | | Since this commit, user is able to actively enter the conversion in case it gets broken (just at the place where the outcome stops passing validation, i.e., with as little stressful context presented to the user as possible). Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* utils_xml: implement way to 'juggle'/re-{root,parent} XML elemsJan Pokorný2014-06-191-0/+35
| | | | Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* xml_utils: make rng_pivot return "starting" definitionJan Pokorný2014-06-131-2/+14
| | | | Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* utils_xml: fix possible issues with namespaced elems/tagsJan Pokorný2014-06-131-2/+5
| | | | Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* utils_xml: define and use new XML/lxml.etree helpersJan Pokorný2014-06-131-6/+24
| | | | Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* Cleanup: move some more XML related stuff to utils_xml.pyJan Pokorný2014-05-301-1/+11
| | | | Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* Cleanup: move squote from utils to utils_xmlJan Pokorný2014-05-301-0/+5
| | | | Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* utils_xml: XML helpers incl. rng_pivot to be used for validationJan Pokorný2014-05-281-0/+57
+ unittest Signed-off-by: Jan Pokorný <jpokorny@redhat.com>