diff options
author | Jan Pokorný <jpokorny@redhat.com> | 2014-05-30 16:41:53 +0200 |
---|---|---|
committer | Jan Pokorný <jpokorny@redhat.com> | 2014-05-30 16:46:19 +0200 |
commit | be8ae795393dcace051801c59fa82f20fe06297d (patch) | |
tree | 203819698d6a73ae1fa09ef56bbb471a560ae52d /formats | |
parent | 929bbdf2febbca56013cee86d8c233ce7e028dfc (diff) | |
download | clufter-be8ae795393dcace051801c59fa82f20fe06297d.tar.gz clufter-be8ae795393dcace051801c59fa82f20fe06297d.tar.xz clufter-be8ae795393dcace051801c59fa82f20fe06297d.zip |
format: implement XML validation based on Relax NG schemas
Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
Diffstat (limited to 'formats')
-rw-r--r-- | formats/ccs.py | 3 | ||||
-rw-r--r-- | formats/coro.py | 3 | ||||
-rw-r--r-- | formats/pcs.py | 5 |
3 files changed, 10 insertions, 1 deletions
diff --git a/formats/ccs.py b/formats/ccs.py index d7f2f94..9e5d485 100644 --- a/formats/ccs.py +++ b/formats/ccs.py @@ -15,6 +15,9 @@ class ccs(XML): """ # XML root = 'cluster' + validator_specs = { + 'etree': '' # XXX no RNG schema handy yet + } class flatccs(ccs): diff --git a/formats/coro.py b/formats/coro.py index de4f97c..877147c 100644 --- a/formats/coro.py +++ b/formats/coro.py @@ -15,3 +15,6 @@ class coroxml(XML): """ # XMLFormat root = 'corosync' + validator_specs = { + 'etree': '' # XXX no RNG schema handy yet + } diff --git a/formats/pcs.py b/formats/pcs.py index 0411372..89dbc37 100644 --- a/formats/pcs.py +++ b/formats/pcs.py @@ -1,5 +1,5 @@ # -*- coding: UTF-8 -*- -# Copyright 2013 Red Hat, Inc. +# Copyright 2014 Red Hat, Inc. # Part of clufter project # Licensed under GPLv2+ (a copy included | http://gnu.org/licenses/gpl-2.0.txt) """Pacemaker configuration system (pcs) format""" @@ -15,3 +15,6 @@ class pcs(XML): """ # XML root = 'cib' + validator_specs = { + 'etree': '' # XXX no RNG schema handy yet + } |