def getSelectedPlugin(repository):
 for plugin in repository.unpausePlugins:
  if plugin.value:
   return plugin
 return None

def getSelectedPlugin ( repository ) : for plugin in repository . unpausePlugins : if plugin . value : return plugin return None
get the selected plugin .