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... --andy.
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
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()
from ZEO.ClientStorage import ClientStorage cs = ClientStorage(('192.168.1.52',9900)) cs.versions() Traceback (most recent call last): File "<stdin>", line 1, in ? File "/data/www/Zope.9/Zope/lib/python/ZEO/ClientStorage.py", line 619, in versions try: return self._call('versions', max) File "/data/www/Zope.9/Zope/lib/python/ZEO/zrpc.py", line 214, in __call__ self.message_output(args) File "/data/www/Zope.9/Zope/lib/python/ZEO/smac.py", line 213, in message_output raise Disconnected("This action is temporarily unavailable.<p>") ZEO.smac.Disconnected: This action is temporarily unavailable.<p>
Sounds like a good start though... But once I find one, how do I delete/discard it? --andy.
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
participants (2)
-
Andrew Sydelko -
Jeremy Hylton