[Zope] Database Pack

Karl Anderson karl@digicool.com
12 Oct 2000 13:24:49 -0700


"Júlio Dinis Silva" <juliodinis@hotmail.com> writes:

> Hi all,
> 
> is there a way to do a pack to zodb without using the managment screens pack 
> button?
> 
> Maybe a python script we could execute from the file system.

Mount the database, then call manage_pack (untested python with cwd in
lib/python):

import ZServer, Zope
Zope.app().Control_Panel.Database.manage_pack(days = 1)

-- 
Karl Anderson                          karl@digicool.com