[ZODB-Dev] ZEO pack

Steve Alexander steve@cat-box.net
Wed, 26 Sep 2001 15:25:41 +0100


Chris Withers wrote:

> Jeremy Hylton wrote:
> 
>>The pack() method on a ClientStorage has an optional argument wait.
>>If you call pack(wait=1), it should block until the pack is completed.
>>
> 
> Urm, small question though...
> 
> I currently have:
> app.Control_Panel.Database.manage_pack()
> 
> What do I replace that with to get teh above functionality?



t=time.time()-days*86400
db=self._p_jar.db()
db.pack(t)

--
Steve Alexander
Software Engineer
Cat-Box limited