TACTIC Open Source
Server Transactions Log - Printable Version

+- TACTIC Open Source (http://forum.southpawtech.com)
+-- Forum: TACTIC Open Source (http://forum.southpawtech.com/forumdisplay.php?fid=3)
+--- Forum: TACTIC Discussion (http://forum.southpawtech.com/forumdisplay.php?fid=4)
+--- Thread: Server Transactions Log (/showthread.php?tid=46)



Server Transactions Log - listy - 12-06-2019

Hi People!

Anyone can explain me how i can undo server transactions?
Currently there is only one-by-one undoing available.
What if i want undo transactions made by another login?
Huh

Thanks!


RE: Server Transactions Log - remkonoteboom - 12-09-2019

The API is purposefully restricted from running this command.  You can do this in a Python script as long as you know the codes of the transactions you want to undo.


Code:
import tacticenv
from pyasm.security import Batch
Batch(project_code=project_code)

from pyasm.command import UndoCmd
cmd = UndoCmd(ignore_files=ignore_files)
cmd.set_transaction_code(transaction_code)
Command.execute_cmd(cmd)



RE: Server Transactions Log - listy - 12-10-2019

(12-09-2019, 05:31 PM)remkonoteboom Wrote: The API is purposefully restricted from running this command.  You can do this in a Python script as long as you know the codes of the transactions you want to undo.
Hi! Thank You. This is actually works, but not so handy Smile

What was the reason for the purposeful restriction?