--- MySQLSessionStore.py.old 2005-06-19 03:59:46.000000000 +0200 +++ MySQLSessionStore.py 2005-06-18 04:19:12.000000000 +0200 @@ -42,7 +42,7 @@ if c.rowcount == 0: return default assert c.rowcount == 1, "more than one session with id %s" % (id,) - pck = c.fetchone()[0] + pck = c.fetchone()[0].tostring() obj = pickle.loads(pck) return obj @@ -74,7 +74,7 @@ c.execute("""\ CREATE TABLE %s ( id VARCHAR(255) NOT NULL PRIMARY KEY, -pickle TEXT NOT NULL, +pickle BLOB NOT NULL, modify_time TIMESTAMP)""" % self.table) def delete_old_sessions(self, minutes):