def listAddableResources(self):

    # Print header
    print("The following organism resources are available. (Aliases in parentheses)", file=sys.stdout)
    print("Add using: 'gkno add-resource <organism>'", file=sys.stdout)
    print("", file=sys.stdout)

    # Lookup all possible resource names (& store corresponding aliases)
    allResources = {}
    for resource in conf.resources:
      allResources[resource.name] = resource.aliases

    # Lookup all user's resources
    userResourceNames = []
    for name in self.userSettings["resources"].keys():
      userResourceNames.append(name)

    # Determine padding based on longest resource name
    maxNameLength = 0
    for name in allResources.keys():
      currentNameLength = len(name)
      if currentNameLength > maxNameLength:
        maxNameLength = currentNameLength
    maxNameLength += 4

    # Print resource list
    allResourceNames = allResources.keys()
    allResourceNames.sort()
    for name in allResourceNames:
      print("    ", sep="", end="", file=sys.stdout)
      if name in userResourceNames:
        print("* ", sep="", end="", file=sys.stdout)
      else:
        print("  ", sep="", end="", file=sys.stdout)
      print(name, end="", file=sys.stdout)
      print(" "%(maxNameLength-len(name)), end="", file=sys.stdout)
      aliases = allResources[name]
      numAliases = len(aliases)
      if numAliases > 0:
        print("(", end="", file=sys.stdout)
        i = 1
        for alias in aliases:
          if i < numAliases:
            print(alias+", ", end="", file=sys.stdout)
          else:
            print(alias, end="", file=sys.stdout)
          i += 1
        print(")", end="")
      print("", file=sys.stdout)
    print("", file=sys.stdout)

    # Print footer
    print("Resources preceded by a '*' have already been added.", file=sys.stdout)
    print("", file=sys.stdout)

  # Print a list of all releases available for named resource
dataset/ETHPy150Open gkno/gkno_launcher/src/gkno/adminUtils.py/adminUtils.listAddableResources/operator `*` -> `%`