Back to index

plone3  3.1.7
undo.py
Go to the documentation of this file.
00001 ## Script (Python) "undo"
00002 ##title=Undo transactions
00003 ##parameters=transaction_info, came_from
00004 
00005 from Products.CMFPlone import PloneMessageFactory as _
00006 
00007 context.portal_undo.undo(context, transaction_info)
00008 context.plone_utils.addPortalMessage(_(u'Transaction(s) undone.'))
00009 
00010 return context.REQUEST.RESPONSE.redirect( came_from )