89
89
def update(self, context, image_id, data):
90
90
"""Replace the contents of the given image with the new data.
96
96
if not self.images.get(image_id):
98
98
self.images[image_id] = copy.deepcopy(data)
100
100
def delete(self, context, image_id):
101
101
"""Delete the given image.
107
107
removed = self.images.pop(image_id, None)
112
112
"""Clears out all images."""