projects
/
cascardo
/
ipsilon.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Transaction object must always have a transaction id
[cascardo/ipsilon.git]
/
ipsilon
/
util
/
trans.py
diff --git
a/ipsilon/util/trans.py
b/ipsilon/util/trans.py
index
bcc3bd0
..
22c7641
100644
(file)
--- a/
ipsilon/util/trans.py
+++ b/
ipsilon/util/trans.py
@@
-18,12
+18,12
@@
class Transaction(Log):
self._ts = TranStore()
self.cookie = None
self._ts = TranStore()
self.cookie = None
- # Backwards compat,
- # if arguments are passed find or get new transaction
if kwargs:
self.find_tid(kwargs)
if kwargs:
self.find_tid(kwargs)
- if not self.transaction_id:
- self.create_tid()
+
+ # If tid isn't found create a new one
+ if not self.transaction_id:
+ self.create_tid()
def find_tid(self, kwargs):
tid = kwargs.get(TRANSID)
def find_tid(self, kwargs):
tid = kwargs.get(TRANSID)