Internal module used by paraview.servermanager to help warn about properties changed or removed.
If the compatibility version is less than the version where a particular property was removed, check_attr should ideally continue to work as before or return a value of appropriate form so old code doesn’t fail. Otherwise check_attr should throw the NotSupportedException with appropriate debug message.
paraview._backwardscompatibilityhelper.
NotSupportedException
(msg)[source]¶Bases: exceptions.Exception
paraview._backwardscompatibilityhelper.
getattr
(proxy, pname)[source]¶Attempts to emulate getattr() when called using a deprecated property name for a proxy.
Will return a resonable standin if the property was deprecated and the paraview compatibility version was set to a version older than when the property was deprecated.
Will raise NotSupportedException
if the property was deprecated and
paraview compatibility version is newer than that deprecation version.
Will raise Continue
to indicate the property name is unaffected by
any API deprecation and the caller should follow normal code execution
paths.