Dolda2000 GitWeb
/
wrw.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b65f311
)
Added more useful repr for sessions.
author
Fredrik Tolf
<fredrik@dolda2000.com>
Fri, 29 Jun 2012 01:31:25 +0000
(
03:31
+0200)
committer
Fredrik Tolf
<fredrik@dolda2000.com>
Fri, 29 Jun 2012 01:31:25 +0000
(
03:31
+0200)
wrw/session.py
patch
|
blob
|
blame
|
history
diff --git
a/wrw/session.py
b/wrw/session.py
index
428c93d
..
3b2b2b2
100644
(file)
--- a/
wrw/session.py
+++ b/
wrw/session.py
@@
-70,6
+70,9
@@
class session(object):
self.__dict__[k] = v
# The proper lock is set by the thawer
+ def __repr__(self):
+ return "<session %s>" % self.id
+
class db(object):
def __init__(self, backdb = None, cookiename = "wrwsess", path = "/"):
self.live = {}