def get(self, profile_id, image_id):
image = None
+
+ when = self.get_argument_date("when", None)
+
# Try to get the image from memcache. If we have a cache miss we
# build a new one.
mem_id = "iuse-%s-%s-%s" % (profile_id, image_id, self.locale.code)
+ if when:
+ mem_id += "-%s" % when.isoformat()
cache = self.get_argument("cache", "true")
if cache == "true":
if not image_cls:
raise tornado.web.HTTPError(404, "Image class is unknown: %s" % image_id)
- profile = self.fireinfo.get_profile(profile_id)
+ profile = self.fireinfo.get_profile(profile_id, when=when)
if not profile:
raise tornado.web.HTTPError(404, "Profile '%s' was not found." % profile_id)