[ZODB-Dev] ZEO pack
Steve Alexander
steve@cat-box.net
Wed, 26 Sep 2001 15:29:57 +0100
Steve Alexander wrote:
> 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)
or, of course,
db.pack(t, wait=1)
How about a patch to Zope to add a wait keyword to manage_pack ?
Then again, I thought that standard Zope with a FileStorage did
synchronous packing anyway.
--
Steve Alexander
Software Engineer
Cat-Box limited