[Zope-CMF] Undo interface

Chris Withers chrisw@nipltd.com
Wed, 6 Jun 2001 13:11:02 +0100


Hi,

Seb Bacon raised some good points about the user-friendliness of the Undo
page.

For example:

Items Pasted into /Members/Chris
<small>by chris on June 6 2001 at 12:53:38</small>

would be a lot nicer than the current:

/TestCMF/Members/chris/folder_paste import into
D:\ChrisW\Zope\current\var\Data.fs
from C:\DOCUME~1\CHRISW~1\LOCALS~1\Temp\~668-1 by chris on Jun
6 at 12:53:38

How hard would it be to let skin methods set a comment to appear at the end
of the current transaction?

Hmmm... probably not that hard. How about a new method on the portal undo
tool:

def setNote(self,note):
   try:
      get_transaction().note(note,obliterate=1)
   except TypeError:

      get_transaction().note('(%s)' % note)

Would really help if get_transaction().note() had the optional 'obliterate'
parameter so that the id isn't at the beginning of the description.

Also, the UndoForm should go back to itself, not the folder view. That makes
more sense to me.

What do other people feel about all this?

cheers,

Chris