Re: [ZODB-Dev] undo (and storage interface) brokenness

2009-12-23 Thread Lennart Regebro
I'd like to add my vote to retaining Undo, I think it's a crucial feature. Changing the API is not a problem, and changing the UI could probably be an improvement. I use it all the time, especially when fiddling with customer datatabases for upgrades or bugfixes. -- Lennart Regebro: http://regebr

Re: [ZODB-Dev] undo (and storage interface) brokenness

2009-12-23 Thread Andreas Jung
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Martin Aspeli wrote: > Hanno Schlichting wrote: > >>> What is zc.beforestorage? >> Look at its PyPi page >> http://pypi.python.org/pypi/zc.beforestorage > > Thanks for the pointer! There is also dm.historical when you need to deal with earlier versions

Re: [ZODB-Dev] undo (and storage interface) brokenness

2009-12-23 Thread Martin Aspeli
Hanno Schlichting wrote: >> What is zc.beforestorage? > > Look at its PyPi page http://pypi.python.org/pypi/zc.beforestorage Thanks for the pointer! > In practice it hardly ever works. Relying on it as a substitution for > backup or tested restore procedures is dangerous. I know that a procedur

Re: [ZODB-Dev] undo (and storage interface) brokenness

2009-12-23 Thread Hanno Schlichting
On Thu, Dec 24, 2009 at 1:34 AM, Martin Aspeli wrote: > Hanno Schlichting wrote: >> Throwing away all changes done in the meantime is usually >> not practical. > > ... although sometimes it is preferable to a full backup restore or > living with whatever it is you want to restore (usually a delete

Re: [ZODB-Dev] undo (and storage interface) brokenness

2009-12-23 Thread Martin Aspeli
Hanno Schlichting wrote: > On Wed, Dec 23, 2009 at 9:26 PM, Jim Fulton wrote: >> Undo is broken in a number of ways. Does anyone care? Does anyone use undo? > > Speaking from the Zope2/Plone crowd: I'm using it during development > with a local file storage at times. > > In a real ZEO production

Re: [ZODB-Dev] undo (and storage interface) brokenness

2009-12-23 Thread Martin Aspeli
Jim Fulton wrote: > I'm looking at undo today because it is complicating ZEO transaction > management. > > Undo is broken in a number of ways. Does anyone care? Does anyone use undo? Plone users tend to use Undo quite a lot. If you accidentally delete something, say, it's pretty much your only

Re: [ZODB-Dev] undo (and storage interface) brokenness

2009-12-23 Thread Chris McDonough
Jim Fulton wrote: > So, I repeat: is anyone actually using undo these days? > I haven't used undo (not the APIs nor via any Zope UI) in years. - C ___ For more information about ZODB, see the ZODB Wiki: http://www.zope.org/Wikis/ZODB/ ZODB-Dev mailin

Re: [ZODB-Dev] undo (and storage interface) brokenness

2009-12-23 Thread Jeff Shell
On Dec 23, 2009, at 2:26 PM, Jim Fulton wrote: > On Wed, Dec 23, 2009 at 4:20 PM, Jeff Shell wrote: >> >> Are you asking at the ZODB level, or at a higher level, such as Zope? > > I'm asking if applications are using undo these days. > >> We use it in our Zope 3 based CMS. We usually only expos

Re: [ZODB-Dev] undo (and storage interface) brokenness

2009-12-23 Thread Jim Fulton
On Wed, Dec 23, 2009 at 4:20 PM, Hanno Schlichting wrote: > On Wed, Dec 23, 2009 at 9:26 PM, Jim Fulton wrote: >> Undo is broken in a number of ways. Does anyone care?  Does anyone use undo? > > Speaking from the Zope2/Plone crowd: I'm using it during development > with a local file storage at ti

Re: [ZODB-Dev] undo (and storage interface) brokenness

2009-12-23 Thread Jim Fulton
On Wed, Dec 23, 2009 at 4:20 PM, Jeff Shell wrote: > On Dec 23, 2009, at 1:26 PM, Jim Fulton wrote: > >> I'm looking at undo today because it is complicating ZEO transaction >> management. >> >> Undo is broken in a number of ways. Does anyone care?  Does anyone use undo? > > Are you asking at the

Re: [ZODB-Dev] undo (and storage interface) brokenness

2009-12-23 Thread Jeff Shell
On Dec 23, 2009, at 1:26 PM, Jim Fulton wrote: > I'm looking at undo today because it is complicating ZEO transaction > management. > > Undo is broken in a number of ways. Does anyone care? Does anyone use undo? Are you asking at the ZODB level, or at a higher level, such as Zope? We use it i

Re: [ZODB-Dev] undo (and storage interface) brokenness

2009-12-23 Thread Hanno Schlichting
On Wed, Dec 23, 2009 at 9:26 PM, Jim Fulton wrote: > Undo is broken in a number of ways. Does anyone care?  Does anyone use undo? Speaking from the Zope2/Plone crowd: I'm using it during development with a local file storage at times. In a real ZEO production setup, undo in Plone most of the tim

Re: [ZODB-Dev] undo (and storage interface) brokenness

2009-12-23 Thread Erik Dahl
Zope 2. -EAD Erik A. Dahl Co-Founder and CTO, Zenoss Inc. phone: 443-837-2597 http://www.zenoss.com On Dec 23, 2009, at 3:40 PM, Jim Fulton wrote: > On Wed, Dec 23, 2009 at 3:38 PM, Erik Dahl wrote: >> We use undo from time to time in a zeo setup. When it works it can >> be a >> life sa

Re: [ZODB-Dev] undo (and storage interface) brokenness

2009-12-23 Thread Jim Fulton
On Wed, Dec 23, 2009 at 3:38 PM, Erik Dahl wrote: > We use undo from time to time in a zeo setup.  When it works it can be a > life saver! :)  If it goes away I guess it wouldn't be the end of the world > though. Do you use it via Zope 2 or do you call ZODB undo apis directly? Jim -- Jim Fulto

Re: [ZODB-Dev] undo (and storage interface) brokenness

2009-12-23 Thread Erik Dahl
We use undo from time to time in a zeo setup. When it works it can be a life saver! :) If it goes away I guess it wouldn't be the end of the world though. -EAD Erik A. Dahl Co-Founder and CTO, Zenoss Inc. phone: 443-837-2597 http://www.zenoss.com On Dec 23, 2009, at 3:26 PM, Jim Fulton

[ZODB-Dev] undo (and storage interface) brokenness

2009-12-23 Thread Jim Fulton
I'm looking at undo today because it is complicating ZEO transaction management. Undo is broken in a number of ways. Does anyone care? Does anyone use undo? Undo is broken in the following ways: - The TransactionalUndo resource manager invalidates objects too early. - If undo is mixed with sto

Re: [ZODB-Dev] propose to change undo support in ZEO

2009-12-23 Thread Jim Fulton
Sorry, I retract this proposal. :( Jim On Wed, Dec 23, 2009 at 11:25 AM, Jim Fulton wrote: > On Wed, Dec 23, 2009 at 10:24 AM, Jim Fulton wrote: >> I'm working on improving the zeo architecture to make it perform better. >> >> Undo is causing some problems.  For storages that support undo *and

Re: [ZODB-Dev] propose to change undo support in ZEO

2009-12-23 Thread Jim Fulton
On Wed, Dec 23, 2009 at 10:24 AM, Jim Fulton wrote: > I'm working on improving the zeo architecture to make it perform better. > > Undo is causing some problems.  For storages that support undo *and* > work with ZEO, I'd like to add a new method, transaction_oids, that returns > the Actually, un

[ZODB-Dev] propose to change undo support in ZEO

2009-12-23 Thread Jim Fulton
I'm working on improving the zeo architecture to make it perform better. Undo is causing some problems. For storages that support undo *and* work with ZEO, I'd like to add a new method, transaction_oids, that returns the oids modified by a transaction. Currently AFAIK, there are only 2 storages