def _url(self, w, h) : import time modtime = int(time.mktime(self.activity_at.timetuple())) #return "/profile/icon/%s_%dx%d.png?%d" % (self.user.id, w, h, modtime) #return "/image/%s.%s/%s_%dx%d.png?%d" % (self.__class__.__module__, self.__class__.__name__, self.user.id, w, h, modtime) import image return image.url(self, self.user.id, w, h, modtime)
def _url(self, w, h) : import image return image.url(self, self.id, w, h)