Commit 887dd317 authored by Chris McDonough's avatar Chris McDonough

Changed things which used HTMLFile to use DTMLFile.

Caused manage_undo_transaction to redirect back to the manage_UndoForm page when a transaction was undone instead of going back to manage_main.
parent 468dd8b8
...@@ -84,8 +84,8 @@ ...@@ -84,8 +84,8 @@
############################################################################## ##############################################################################
__doc__='''short description __doc__='''short description
$Id: Undo.py,v 1.23 2001/01/08 22:46:56 brian Exp $''' $Id: Undo.py,v 1.24 2001/01/11 22:42:42 chrism Exp $'''
__version__='$Revision: 1.23 $'[11:-2] __version__='$Revision: 1.24 $'[11:-2]
import Globals, ExtensionClass import Globals, ExtensionClass
from DateTime import DateTime from DateTime import DateTime
...@@ -107,7 +107,7 @@ class UndoSupport(ExtensionClass.Base): ...@@ -107,7 +107,7 @@ class UndoSupport(ExtensionClass.Base):
'help':('OFSP','Undo.stx')}, 'help':('OFSP','Undo.stx')},
) )
manage_UndoForm=Globals.HTMLFile( manage_UndoForm=Globals.DTMLFile(
'dtml/undo', 'dtml/undo',
globals(), globals(),
PrincipiaUndoBatchSize=20, PrincipiaUndoBatchSize=20,
...@@ -176,7 +176,7 @@ class UndoSupport(ExtensionClass.Base): ...@@ -176,7 +176,7 @@ class UndoSupport(ExtensionClass.Base):
if REQUEST is None: return if REQUEST is None: return
REQUEST['RESPONSE'].redirect("%s/manage_main" % REQUEST['URL1']) REQUEST['RESPONSE'].redirect("%s/manage_UndoForm" % REQUEST['URL1'])
return '' return ''
Globals.default__class_init__(UndoSupport) Globals.default__class_init__(UndoSupport)
......
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