Commit 33e1c336 authored by Utkarsh Ayachit's avatar Utkarsh Ayachit Committed by Kitware Robot

Merge topic '15104_fix_catalyst_writers'

8e56e935 BUG #15104: Fix writers exported in catalyst scripts.
parents 622ed28f 8e56e935
......@@ -102,6 +102,14 @@ class ViewAccessor(smtrace.RealProxyAccessor):
trace.append_separator()
return trace.raw_data()
# -----------------------------------------------------------------------------
class WriterFilter(smtrace.PipelineProxyFilter):
def should_never_trace(self, prop):
"""overridden to never trace 'WriteFrequency' and 'FileName' properties
on writers."""
if prop.get_property_name() in ["WriteFrequency", "FileName"]: return True
return super(WriterFilter, self).should_never_trace(prop)
# -----------------------------------------------------------------------------
class WriterAccessor(smtrace.RealProxyAccessor):
"""Accessor for writers. Overrides trace_ctor() to use the actual writer
......@@ -148,7 +156,7 @@ class WriterAccessor(smtrace.RealProxyAccessor):
filename = self.get_object().GetProperty("FileName").GetElement(0)
ctor = self.get_proxy_label(xmlgroup, xmlname)
original_trace = smtrace.RealProxyAccessor.trace_ctor(\
self, ctor, filter, ctor_args, skip_assignment)
self, ctor, WriterFilter(), ctor_args, skip_assignment)
trace = smtrace.TraceOutput(original_trace)
trace.append_separated(["# register the writer with coprocessor",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment