Import 2017-06-07 23:51:09: master 1f4fa0a8

Author Committer Branch Timestamp Parent
jcfr jcfr master 2016-06-10 01:20:23 master acc9915c
Changeset

BUG: Fix logging warning message when slicer.vtkPVScalarBarActor doesn't exist

This commit fixes a bug with logging a warning message. Because 'slicer.logging'
doesn't exist, the call to 'slicer.logging.warning()' failed with an error like:

  File "/path/to/Slicer-build/lib/Slicer-4.5/qt-scripted-modules/DataProbeLib/SliceViewAnnotations.py", line 25, in __init__
slicer.logging.warning("SliceAnnotations: Disable features relying on vtkPVScalarBarActor")
AttributeError: 'module' object has no attribute 'logging'

Now the code calls 'logging.warning()'.

This warning was added in r24058. As described in that commit, the warning can
be triggered by starting Slicer with '--disable-builtin-loadable-modules'.

From: Max Smolens <max.smolens@kitware.com>

git-svn-id: http://svn.slicer.org/Slicer4/trunk@25178 3bd1e089-480b-0410-8dfb-8563597acbee

mod - Modules/Scripted/DataProbe/DataProbeLib/SliceViewAnnotations.py Diff File