def __cmp__(self, other): if self.provider == other.provider: return 0 provider_tags = common.getProviderTags() if self.provider not in provider_tags: return 1 if other.provider not in provider_tags: return -1 if provider_tags.index(self.provider) < provider_tags.index(other.provider): return -1 return 1
def __cmp__(self, other): if self.provider == other.provider: return 0 provider_tags = common.getProviderTags() if self.provider not in provider_tags: return 1 if other.provider not in provider_tags: return -1 if provider_tags.index(self.provider) < provider_tags.index( other.provider): return -1 return 1
def downloadImages(self): for cImageName in self.getImageNames(): for provider in common.getProviderTags(): if self.getField(cImageName, provider): self.downloadImage(cImageName, provider)
def downloadImages(self): for cImageName in self.getImageNames(): for provider in common.getProviderTags(): if self.getField(cImageName, provider): self.downloadImage(cImageName, provider)