def store(filename, content, pf): if pf is None: pf = ProcessedFile(filename = filename) compressed = bz2.compress(content) pf.data = compressed pf.redo = False memcache.set(filename, compressed) pf.put() log_debug("Processed file %s", filename)
def store(filename, content, pf): if pf is None: pf = ProcessedFile(filename=filename) compressed = bz2.compress(content) pf.data = compressed pf.redo = False memcache.set(filename, compressed) pf.put() log_debug("Processed file %s", filename)