Commit 10c95267 authored by 's avatar

Fixed bug

parent 7d3645f0
...@@ -11,8 +11,8 @@ ...@@ -11,8 +11,8 @@
__doc__='''short description __doc__='''short description
$Id: Undo.py,v 1.1 1997/09/23 00:08:43 jim Exp $''' $Id: Undo.py,v 1.2 1997/09/25 21:03:50 brian Exp $'''
__version__='$Revision: 1.1 $'[11:-2] __version__='$Revision: 1.2 $'[11:-2]
import Globals import Globals
from DateTime import DateTime from DateTime import DateTime
...@@ -42,8 +42,11 @@ class UndoSupport: ...@@ -42,8 +42,11 @@ class UndoSupport:
r=[] r=[]
add=r.append add=r.append
h=['',''] h=['','']
for info in db.transaction_info(first_transaction, last_transaction, try: trans_info=db.transaction_info(first_transaction,
path): last_transaction,path)
except: trans_info=[]
for info in trans_info:
[path, user] = (split(info[2],' ')+h)[:2] [path, user] = (split(info[2],' ')+h)[:2]
add( add(
{'pos': info[0], {'pos': info[0],
...@@ -54,8 +57,7 @@ class UndoSupport: ...@@ -54,8 +57,7 @@ class UndoSupport:
'path': path, 'path': path,
'desc': info[3], 'desc': info[3],
}) })
return r or []
return r
def manage_undo_transactions(self, transaction_info, REQUEST): def manage_undo_transactions(self, transaction_info, REQUEST):
""" """
...@@ -76,6 +78,9 @@ class UndoSupport: ...@@ -76,6 +78,9 @@ class UndoSupport:
############################################################################## ##############################################################################
# #
# $Log: Undo.py,v $ # $Log: Undo.py,v $
# Revision 1.2 1997/09/25 21:03:50 brian
# Fixed bug
#
# Revision 1.1 1997/09/23 00:08:43 jim # Revision 1.1 1997/09/23 00:08:43 jim
# *** empty log message *** # *** empty log message ***
# #
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment