ID 324027 - Versioning_example.py calls incorrect attribute

Follow

Problem summary
Versioning_example.py calls incorrect attribute

Customer reported version
nuke.11.0v3

Customer reported platform
suse

Steps to reproduce
1) Open path/to/python/modules/hiero/examples/versioning_example.py
2) Look at call in line 14.
 
Workaround
Change line 14 to read:
if not hasattr(VersionScanner.VersionScanner, "default_filterVersion"):
 
Reproduced by support
Hiero 11.0v3 - Windows 10, Centos  7, OSX 10.10.5
Hiero 11.0v1 - Windows 10, Centos  7, OSX 10.10.5
Hiero 10.5v7 - Windows 10, Centos  7, OSX 10.10.5
Hiero 10.5v1 - Windows 10, Centos  7, OSX 10.10.5
Hiero 10.0v6 - Windows 10, Centos  7, OSX 10.10.5
Hiero 10.0v1 - Windows 10, Centos  7, OSX 10.10.5
Hiero 9.0v9 - Windows 10, Centos  7, OSX 10.10.5
Hiero 9.0v1 - Windows 10, Centos  7, OSX 10.10.5
 
Earliest version tested
9.0v1 - Windows 10, Centos  7, OSX 10.10.5 - This example did not exist before 9.0v1

Expected behaviour
Line 14 should check to see if VersionScanner.VersionScanner has the attribute "default_filterVersion" and if not, run the code to save default_filterVersion as the original "filterVersion" function to be called if needed.

Actual behaviour
Line 14 checks to see if VersionScanner.VersionScanner has the attribute "default_filterVersionSameFormat" and if not, runs the code to define "default_filterVersion" as the original function defined. If the script has already been run, it will define "default_filterVersion" to be "filterVersion" again, which is now equivalent to "filterVersionSameFormat" as per line 98.

    We're sorry to hear that

    Please tell us why