]> CRI, Mines Paris - PSL - Plinn.git/blobdiff - Products/Plinn/skins/custom_control/undo.py
Déplacement pour eggification.
[Plinn.git] / Products / Plinn / skins / custom_control / undo.py
diff --git a/Products/Plinn/skins/custom_control/undo.py b/Products/Plinn/skins/custom_control/undo.py
new file mode 100644 (file)
index 0000000..c74e77b
--- /dev/null
@@ -0,0 +1,7 @@
+## Script (Python) "undo"
+##title=Undo transactions
+##parameters=transaction_info, ajax=''
+context.portal_undo.undo(context, transaction_info)
+
+return context.REQUEST.RESPONSE.redirect(
+    'undo_form?portal_status_message=Transaction(s)+undone&ajax=%s' % ajax )