Logo Search packages:      
Sourcecode: viridian version File versions  Download package

def AmpacheTools::AmpacheGUI::AmpacheGUI::toggle_plugin (   self,
  widget,
  path,
  model 
)
Toggle a plugin being active

Definition at line 1838 of file AmpacheGUI.py.

                                                  :
            """Toggle a plugin being active"""
            plugin_name = model[path][3]
            
            going_to = not model[path][0]
            if going_to == True:
                  self.enabled_plugins.append(plugin_name)
            else:
                  self.enabled_plugins.remove(plugin_name)
            # save the new list
            self.db_session.variable_set('enabled_plugins', self.enabled_plugins)
            
            # this line will tick or untick the checkmark
            model[path][0] = not model[path][0]
            

Generated by  Doxygen 1.6.0   Back to index