format: select external "hash" as the first quarter of original

Because of the nature of the hash algo, we would yield basically nothing
with the previous "obscurity" anyway.

Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
format: make SimpleFormat referenceable in filters

This is the same case as with XML built-format.

Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
utils_prog: extend comment for defer_common (confused myself)

Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
utils_prog: getenv_namespaced for accessing CLUFTER_X env vars

Actually, the namespace is derived from the package name directly.

Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
format: more sane usage of "uniquize" filename hash

Salting the hash can be conditionally (via env variable) turned off,
changing the hash algo ditto.

Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
filters/cluster: sanitize the import

Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
filters/cluster: normalize XML/dir structure

Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
filters/cluster: execfile needs __package__ in globals

Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
utils_prog: TweakedDict: fix returning copy of non-dict

Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
command_context: make filter failback up to "root" context

...during item lookup.  This is necessary so that 'system' and
'system_extra' do not require special treatment (copying to intermediate
lookup level shared amongst filters).

Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
filter: fix incorrect handling of system{,_extra} params

Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
utils_xslt: dedicated to XSLT related helpers

Also move xslt_identity from utils_xml to utils_xslt.

Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
utils_xslt: xslt_is_member encoding Python's "foo in list"

Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
filters/*: switch to using xslt_is_member

Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
filters/*: better, "additive" structure (imports , namespacing)

Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
tests: fix an issue with passing dict instead of "opt" obj

Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
filters/cluster: special-case for when importing directly

(like when experimenting in combo with _go.py)

Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
filter: cosmetics

Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
filter: XMLFilter: massage do_mix/inject identity logic

(don't ask much about the changes)

Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
filter: XMLFilter: get it ready for text output as well

Signed-off-by: Jan Pokorný <jpokorny@redhat.com>