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

2002-03-04 Thread Jeremy Hylton

On Mon, 4 Mar 2002 11:01:22 -0500
 Andrew Sydelko [EMAIL PROTECTED] 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
 

___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )



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

2002-03-04 Thread Andrew Sydelko

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.

___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )



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

2002-03-04 Thread Jeremy Hylton

On Mon, 4 Mar 2002 11:11:55 -0500
 Andrew Sydelko [EMAIL PROTECTED] 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

___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )