diff options
author | Jan Pokorný <jpokorny@redhat.com> | 2015-02-18 20:15:36 +0100 |
---|---|---|
committer | Jan Pokorný <jpokorny@redhat.com> | 2015-02-26 22:37:31 +0100 |
commit | c1cf8bc89c0bda8e2a47601dcdcb0ce7cce9c0db (patch) | |
tree | bd1d74d09f88865161762aa2b8acff0f5844d8e7 /filter.py | |
parent | 316b9c451b7e32546177d6bb922257c97e009eea (diff) | |
download | clufter-c1cf8bc89c0bda8e2a47601dcdcb0ce7cce9c0db.tar.gz clufter-c1cf8bc89c0bda8e2a47601dcdcb0ce7cce9c0db.tar.xz clufter-c1cf8bc89c0bda8e2a47601dcdcb0ce7cce9c0db.zip |
filter: make XSLT filter aware of lazystring symbols
Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
Diffstat (limited to 'filter.py')
-rw-r--r-- | filter.py | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -28,7 +28,7 @@ from .plugin_registry import MetaPlugin, PluginRegistry from .utils import args2tuple, arg2wrapped, \ filterdict_keep, filterdict_pop, \ head_tail, hybridproperty, \ - tuplist + lazystring, tuplist from .utils_func import apply_preserving_depth, \ apply_aggregation_preserving_depth, \ apply_intercalate, \ @@ -514,6 +514,8 @@ class XMLFilter(Filter, MetaPlugin): # in top-down manner if isinstance(sym, tuple): return sym # already proceeded + if isinstance(sym, lazystring): + sym = str(sym) if isinstance(sym, basestring): log.debug("preprocessing {0}".format(sym)) # XXX <xsl:output method="xml" |