[Zope-PTK] PTK Undo fix..
Robert Towster
RTowster@emerging.com
Wed, 26 Apr 2000 11:42:08 -0500
I have been setting up an internal site using the PTK during the
last couple weeks. One thing that didnt work for me was Undo. I
am using .71 of the PTK. In my tweaking I managed to fix Undo and
am passing along the fix for all to use..
Anyway.. in PTKBase/PortalObject.py
def portal_undo(self, transaction_info, REQUEST=None):
"""Perform undo and present portal interface
"""
jar=self._p_jar
db=jar.db
undo=db().undo
# undo=Globals.UndoManager.undo
for i in transaction_info: undo(i)
if REQUEST is not None:
return self.portal_contents(
self, REQUEST, portal_status_message='Transaction undone')
Robert Towster
Technology Services
e m e r g i n g | Houston
713.544.1391 voice
713.544.1230 fax
http://www.emerging.com