projects
/
py-rsbac
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
215455a
)
Fix TTL processing for um.User.
author
Frédéric Jolliton
<git@frederic.jolliton.com>
Mon, 20 Nov 2006 12:58:46 +0000
(12:58 +0000)
committer
Frédéric Jolliton
<git@frederic.jolliton.com>
Mon, 20 Nov 2006 12:58:46 +0000
(12:58 +0000)
{get,set}UserTtl are already calling intToTtl and ttlToint,
so it was wrong to call them again in User.getTtl and User.setTtl.
rsbac/um.py
patch
|
blob
|
history
diff --git
a/rsbac/um.py
b/rsbac/um.py
index
2fef67b
..
c26f96c
100644
(file)
--- a/
rsbac/um.py
+++ b/
rsbac/um.py
@@
-739,9
+739,9
@@
class UserBase( object ) :
# TTL
#
def getTtl( self ) :
- return
intToTtl( getUserTtl( self.id )
)
+ return
getUserTtl( self.id
)
def setTtl( self , ttl ) :
- return setUserTtl( self.id , ttl
ToInt( ttl )
)
+ return setUserTtl( self.id , ttl )
ttl = property( getTtl , setTtl )
#
# exists