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

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


On Mon, 4 Mar 2002 11:11:55 -0500
 Andrew Sydelko <andrew@sydelko.org> wrote:
> On Monday 04 March 2002 11:08, you wrote:
> > On Mon, 4 Mar 2002 11:01:22 -0500
> 
> >
> > 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()

If you wait a second or two, the client should connect.

To actually, do something:
>>> import ZODB
>>> db = ZODB.DB(cs)
>>> cs.versions()
# pick a version
>>> db.abortVersion(name)
>>> get_transaction().commit()

Jeremy