def getIndexFromService(self, serviceref): if serviceref is not None: for x in range(len(self.list)): if CompareWithAlternatives(self.list[x][0], serviceref.toString()): return x return None