[Zope-dev] Re: [ZODB-Dev] Deleting versions from Control_Panel

Jeremy Hylton jeremy@zope.com
Mon, 04 Mar 2002 11:08:16 -0500


On Mon, 4 Mar 2002 11:01:22 -0500
 Andrew Sydelko <andrew@sydelko.org> wrote:
> For some reason, when I try to view the Version
> Management screen
> under Control Panel, I get a bunch of gibberish for one
> of the versions...
> 
> And... it won't let me click on the check box and
> "Discard" it... Is there
> a way to do this manually? Or even see which versions are
> available manually?
> We are running ZEO, so I should be able to import Zope
> and go from there...

A low-level way to get a list of versions is to call the
versions() method on the storage object.  Example:

>>> from ZEO.ClientStorage import ClientStorage
>>> cs = ClientStorage(...) # your server address here
>>> cs.versions()

Jeremy