def store(self, url, content, work_unit): """ Store the content. """ agent = FileSystemAgent.getAgent() fs_return = agent.save(self.build_filename(url), content) if not fs_return.result: log.warn("Failed to save %s: %s" % (url, fs_return.message)) self.record('image_save_failed') return self.record('image_saved') return