def get(self, **kwargs): from restthumbnails import defaults, helpers if 'secret' not in kwargs: kwargs['secret'] = helpers.get_secret(**kwargs) url = urlparse.urljoin( defaults.THUMBNAIL_PROXY_BASE_URL, defaults.FILE_SIGNATURE % kwargs) return self.client.get(url)
def secret(self): return helpers.get_secret(self.source, self.size_string, self.method, self.extension)
def secret(self): return helpers.get_secret( self.source, self.size_string, self.method, self.extension)