#NEWLINE# def enableDisableAll( self , doEnable ) : #NEWLINE# #INDENT# for module in self . pluginConfig [ 'modules' ] : #NEWLINE# #INDENT# moduleInfo = self . pluginConfig [ 'modules' ] [ module ] #NEWLINE# if ( not moduleInfo . get ( 'isImported' ) ) : #NEWLINE# #INDENT# def _enableDisableAll( moduleInfo ) : #NEWLINE# #INDENT# if doEnable : #NEWLINE# #INDENT# moduleInfo [ 'status' ] = 'enabled' #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# moduleInfo [ 'status' ] = 'disabled' #NEWLINE# #UNINDENT# for importModuleInfo in moduleInfo . get ( 'imports' , EMPTYLIST ) : #NEWLINE# #INDENT# _enableDisableAll ( importModuleInfo ) #NEWLINE# #UNINDENT# #UNINDENT# _enableDisableAll ( moduleInfo ) #NEWLINE# if doEnable : #NEWLINE# #INDENT# self . moduleEnableButton [ 'text' ] = self . DISABLE #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# self . moduleEnableButton [ 'text' ] = self . ENABLE #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# self . pluginConfigChanged = True #NEWLINE# self . loadTreeViews ( )