[Zope-Coders] Re: runzope - but no stopzope in Zope 2.7?

Paul Winkler pw_lists at slinkp.com
Thu Nov 20 13:09:35 EST 2003


On Thu, Nov 20, 2003 at 10:23:03AM -0500, Chris McDonough wrote:
> It wouldn't be able to open the filestorage and pack it directly unless
> ZEO was used; it would need to go through a server to do it... this
> could be a bit tricky because zopectl itself doesn't really know much
> about the configuration (e.g. what ports Zope is actually listening on,
> what the admin username and password are, etc).  I suppose zopectl could
> import ZConfig and read the config itself, though.  This is a bit
> involved.

You can pack from zopectl debug, regardless of the storage... 
so why not just do the equivalent?
something like:

days = 7  # we'll want to get this from sys.argv
cp = app.Control_Panel
cp.manage_pack(days=days)


-- 

Paul Winkler
http://www.slinkp.com
Look! Up in the sky! It's THE THING!
(random hero from isometric.spaceninja.com)



More information about the Zope-Coders mailing list