projects
/
py-rsbac
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c8e02c5
)
Added a comment about transaction internal use.
author
Frédéric Jolliton
<git@frederic.jolliton.com>
Sat, 21 Oct 2006 23:19:38 +0000
(23:19 +0000)
committer
Frédéric Jolliton
<git@frederic.jolliton.com>
Sat, 21 Oct 2006 23:19:38 +0000
(23:19 +0000)
rsbac/transaction.py
patch
|
blob
|
history
diff --git
a/rsbac/transaction.py
b/rsbac/transaction.py
index
9cf8e33
..
e41d8a9
100644
(file)
--- a/
rsbac/transaction.py
+++ b/
rsbac/transaction.py
@@
-80,6
+80,8
@@
def withTransaction( fun , uid = g_ALL_USERS , password = None , ttl = None ) :
_with( CurrentTransaction( n ) , fun , ( Transaction( n ) , ) )
finally :
# If the transaction still exist, cancel it inconditionnaly.
+ # This assume that the behavior of forget() on a non-existing
+ # transaction is fine.
lib.rsbac_list_ta_forget( n , password )
def begin( uid = g_ALL_USERS , password = None , ttl = 0 ) :