From b9e22c33901b627684450411477f6c459fc302da Mon Sep 17 00:00:00 2001 From: Fredrik Tolf Date: Fri, 29 Jun 2012 03:31:25 +0200 Subject: [PATCH] Added more useful repr for sessions. --- wrw/session.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/wrw/session.py b/wrw/session.py index 428c93d..3b2b2b2 100644 --- 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 "" % self.id + class db(object): def __init__(self, backdb = None, cookiename = "wrwsess", path = "/"): self.live = {} -- 2.11.0