summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* clufter.spec: prepare grounds for possible pagure.io jumpJan Pokorný2015-09-022-7/+12
| | | | | | Open source infrastructure FTW! Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* travis: irc notifications for #clusterlabs-dev @ freenodeJan Pokorný2015-09-021-0/+3
| | | | | | Cf. http://clusterlabs.org/pipermail/users/2015-June/000576.html Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* Set pre-release versionJan Pokorný2015-09-022-2/+5
| | | | Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* Bump version to 0.50.2v0.50.2Jan Pokorný2015-08-112-3/+3
| | | | Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* filters/ccsflat2cibprelude[nfsclient]: forgotten RA conversionJan Pokorný2015-08-112-0/+128
| | | | | | | Also included are respective unit tests (that needed code adjustments and fixtures spanning several past commits). Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* plugin_registry: more systemic builtin plugin paths injectionJan Pokorný2015-08-111-8/+7
| | | | | | | Now, the injection can be prevented by either specifying paths as None or by initial item in the non-empty iterable being None. Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* filter: when filter validates along, avoid revalidationJan Pokorný2015-08-111-1/+4
| | | | | | ... on output format instantiation (needless and unhelpful). Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* filter: XMLFilter.deco_xslt's fnc can be parametrized directlyJan Pokorný2015-08-111-2/+4
| | | | | | In that case, these directly passed kwargs take the precedence. Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* filter: allow passing xml_root into Format's walk_schemaJan Pokorný2015-08-111-3/+6
| | | | Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* format: cosmetics/indentationJan Pokorný2015-08-111-1/+1
| | | | Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* format: walk_schema now allows overriding of xml_rootJan Pokorný2015-08-111-2/+2
| | | | Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* format: Format/walk_schema inconsistency robustness++Jan Pokorný2015-08-111-3/+7
| | | | | | | | | Properly report an inconsistency, such as when nothing corresponding to xml_root is found under root_dir directory, making the walk tree empty. Also turn a following INFLOOP exception into a dedicated Format one. Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* format: turn validator from classmethod to hybridmethodJan Pokorný2015-08-111-5/+6
| | | | Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* utils: new "hybridmethod" decoratorJan Pokorný2015-08-111-0/+8
| | | | | | | | | | | Similar to hybridproperty: first parameter of the decorated method is flexibly bound to either the instance or the class depending on the context of invokation. Effectively, the only difference is that hybridmethod is expected to be passed arguments, unlike with property where it is called directly (w/o parameters) upon access. Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* tests: spin off TeardownFilterTestCase classJan Pokorný2015-08-111-4/+6
| | | | | | Likewise, this a "ground preparation" for upcoming new unit test. Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* tests/_common.py, import -> tests/_com, execfileJan Pokorný2015-08-112-3/+3
| | | | | | | Preparing ground for nested test and unittest not playing well with symlinked _common.py in such the respective nested directory. Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* tests/formats/command: avoid a needless warningJan Pokorný2015-08-111-2/+4
| | | | | | | > WARNING:clufter.formats.command:'command' format: not backed by > OrderedDict Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* filters/cib2pcscmd[resources]: stonith also handles meta attrs/opsJan Pokorný2015-08-111-0/+19
| | | | | | See https://bugzilla.redhat.com/show_bug.cgi?id=1225946. Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* filters/cib2pcscmd[resources]: warn on rule-based "attribute sets"Jan Pokorný2015-08-112-15/+34
| | | | | | In a wait for https://bugzilla.redhat.com/show_bug.cgi?id=1250744. Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* utils: try avoiding clash of special keys in kwargsJan Pokorný2015-08-112-8/+8
| | | | | | | | ...in filterdict_* lambdas where (now) _fn_ is a special key. Also adjust the callers where needed. Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* filters/cibprelude2cibcompact[resources]: fix rule+stickinessJan Pokorný2015-08-112-2/+6
| | | | | | | | | Apparently, rule is supposed to accompany the actual nvpair that will be applied in case such condition holds (otherwise it's a no-op). Adjust a check script respectively. Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* Set pre-release versionJan Pokorný2015-08-112-2/+5
| | | | Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* Bump version to 0.50.1v0.50.1Jan Pokorný2015-07-142-3/+3
| | | | Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* setup: include "void"/minimal format instances (files)Jan Pokorný2015-07-141-0/+1
| | | | Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* format: add optional knowledge of a "void"/minimal fileJan Pokorný2015-07-143-0/+23
| | | | Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* format: avoid duplicate "swallow" (+validation, ...)Jan Pokorný2015-07-141-1/+2
| | | | | | | Also fixes assertion error for two equal (but non-identical) tuples later on. Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* commands/pcs2pcscmd: fix a (dire) filter swapJan Pokorný2015-07-141-2/+2
| | | | Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* Set pre-release versionJan Pokorný2015-07-142-2/+5
| | | | Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* Bump version to 0.50.0 (intentionally excessive)v0.50.0Jan Pokorný2015-07-022-4/+4
| | | | Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* format: more verbose assertionJan Pokorný2015-07-021-1/+2
| | | | Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* commands/cib2pcscmd: deserves dedicated exposure as a commandJan Pokorný2015-07-021-0/+51
| | | | Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* commands/pcs2pcscmd-needle: finalize using new filtersJan Pokorný2015-07-021-12/+39
| | | | Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* filters/simpleconfig2needlexml: implemented + unit testJan Pokorný2015-07-022-2/+65
| | | | Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* formats/simpleconfig: fix issues with a grammar sampleJan Pokorný2015-07-021-4/+4
| | | | Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* filters/simpleconfig-normalize: new filter + unit testJan Pokorný2015-07-023-0/+99
| | | | Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* formats/simpleconfig: simpleconfig-normalized specializationJan Pokorný2015-07-021-1/+23
| | | | | | Also fix a typo in simpleconfig pseudo-grammar. Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* README: expand ccs_flatten dependencies/requirementsJan Pokorný2015-07-021-2/+6
| | | | | | (merge build- and run-time deps) Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* README: Contact, a new top-level sectionJan Pokorný2015-07-021-0/+13
| | | | Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* README: Demo, a new section under UsageJan Pokorný2015-07-021-0/+45
| | | | Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* README: Installation -> Stable version + contentJan Pokorný2015-07-021-4/+12
| | | | Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* README: ccs_flatten is now solely a local matterJan Pokorný2015-07-021-5/+2
| | | | Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* formats/simpleconfig: implement string->struct + testJan Pokorný2015-07-022-2/+31
| | | | Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* formats/simpleconfig: "constantify" the lexical unitsJan Pokorný2015-07-021-1/+8
| | | | Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* tests/formats/simpleconfig: deserves a unit test, tooJan Pokorný2015-07-021-0/+71
| | | | Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* formats/simpleconfig: fix missing newline at the endJan Pokorný2015-07-021-2/+2
| | | | | | (which is implicitly assumed and was present before a rewrite) Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* formats/simpleconfig: loosen desired notation a bitJan Pokorný2015-07-021-15/+15
| | | | | | | Thanks to more tolerant "pretty-printer" and also with respect to what target structuring will be optimal for the parser. Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* formats/simpleconfig: simplify (crazy) get_bytestringJan Pokorný2015-07-021-37/+20
| | | | | | | | | | | Beside being much more legible, it is also (almost unnoticably) faster, mainly due to not increasing the indentation step by step along the return from recursion. "previous apply_aggregation_preserving_passing_depth attempt was unsuccessful" -- oh, well. Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* commands/ccs2pcscmd-needle: make it finally workingJan Pokorný2015-07-021-4/+31
| | | | Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* commands/ccs2pcscmd-flatiron: cosmetics (newlines)Jan Pokorný2015-07-021-1/+1
| | | | Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* filters/needlexml2pcscmd: implement the filterJan Pokorný2015-07-027-2/+186
| | | | Signed-off-by: Jan Pokorný <jpokorny@redhat.com>