Commit fb62543f authored by Cory Quammen's avatar Cory Quammen
Browse files

paraview.simple: make SetProperties() use backwards compatibility helper

SetProperties() is used to set properties with key/value pairs,
including properties set in a Python Proxy object constructor. Make it
use Proxy.__setattr__() to set the value so that the backwards
compatibility helper is invoked.
parent dda0d239
......@@ -604,9 +604,8 @@ def SetProperties(proxy=None, **params):
proxy = active_objects.source
properties = proxy.ListProperties()
for param in params.keys():
if param not in properties:
raise AttributeError("object has no property %s" % param)
proxy.SetPropertyWithName(param, params[param])
pyproxy = servermanager._getPyProxy(proxy)
pyproxy.__setattr__(param, params[param])
# -----------------------------------------------------------------------------
......
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