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.
getattr
(proxy, pname)[source]¶Attempts to emulate getattr() when called using a deprecated property name for a proxy.
Will return a reasonable stand-in 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.
paraview._backwardscompatibilityhelper.
setattr
(proxy, pname, value)[source]¶Attempts to emulate setattr() when called using a deprecated name for a proxy property.
For properties that are no longer present on a proxy, the code should do the following: