Import 2017-06-07 23:51:09: master 9cb5668f

Author Committer Branch Timestamp Parent
jcfr jcfr master 2016-05-23 02:14:03 master acda657d
Changeset

STYLE: Simplify loading of loadable module python modules

This commit removes the special case and ensures all loadable module
python dependencies (Logic, MRML, MRMLDisplayableManager and Widget) are
loaded using the method "qSlicerLoadableModule::importModulePythonExtensions".

Since prior to this change, moduledm, modulelogic, modulemrml and modulewidget
where imported into slicer from within slicer/init.py, this commit
updates "slicer.util.importModuleObjects" to explicitly add the classes
to the slicer module.

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

mod - Base/Python/slicer/moduledm/__init__.py Diff File
mod - Base/Python/slicer/modulelogic/__init__.py Diff File
mod - Base/Python/slicer/modulemrml/__init__.py Diff File
mod - Base/Python/slicer/modulewidget/__init__.py Diff File
mod - Base/Python/slicer/util.py Diff File
mod - Base/QTGUI/qSlicerLoadableModule.cxx Diff File
mod - Base/QTGUI/qSlicerLoadableModule.h Diff File