Ejemplo n.º 1
0
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)
Ejemplo n.º 2
0
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)