@@ -24,9 +24,9 @@ def __init__(this, name=e.INVALID_NAME()):
2424 # For optional args, supply the arg name as well as a default value.
2525 this .optionalKWArgs = {}
2626
27- #args will be provided by EMI.
28- this .args = None
29-
27+ # Ease of use members
28+ this .transactionSucceeded = False
29+ this . rollbackSucceeded = False
3030
3131 # Do stuff!
3232 # Override this or die.
@@ -37,7 +37,7 @@ def Transaction(this):
3737 # RETURN whether or not the Transaction was successful.
3838 # Override this to perform whatever success checks are necessary.
3939 def DidTransactionSucceed (this ):
40- return False
40+ return this . transactionSucceeded
4141
4242
4343 # Undo any changes made by Transaction.
@@ -49,7 +49,7 @@ def Rollback(this):
4949 # RETURN whether or not the Transaction was successful.
5050 # Override this to perform whatever success checks are necessary.
5151 def DidRollbackSucceed (this ):
52- return False
52+ return this . rollbackSucceeded
5353
5454
5555 # Hook for any pre-transaction configuration
@@ -175,7 +175,7 @@ def ValidateArgs(this, **kwargs):
175175
176176 # Override of eons.Functor method. See that class for details
177177 def UserFunction (this , ** kwargs ):
178- logging .info (f"Initiating Transaction { this .name } for { this .args } " )
178+ logging .info (f"Initiating Transaction { this .name } for { this .tomes } " )
179179
180180 this .PreTransaction ()
181181
0 commit comments