"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "roundup/backends/sessions_rdbms.py" between
roundup-1.6.1.tar.gz and roundup-2.0.0.tar.gz

About: Roundup is an highly customisable issue-tracking system with command-line, web and e-mail interfaces (written in Python).

sessions_rdbms.py  (roundup-1.6.1):sessions_rdbms.py  (roundup-2.0.0)
"""This module defines a very basic store that's used by the CGI interface """This module defines a very basic store that's used by the CGI interface
to store session and one-time-key information. to store session and one-time-key information.
Yes, it's called "sessions" - because originally it only defined a session Yes, it's called "sessions" - because originally it only defined a session
class. It's now also used for One Time Key handling too. class. It's now also used for One Time Key handling too.
""" """
__docformat__ = 'restructuredtext' __docformat__ = 'restructuredtext'
import os, time, logging import os, time, logging
from cgi import escape
from roundup.anypy.html import html_escape as escape
class BasicDatabase: class BasicDatabase:
''' Provide a nice encapsulation of an RDBMS table. ''' Provide a nice encapsulation of an RDBMS table.
Keys are id strings, values are automatically marshalled data. Keys are id strings, values are automatically marshalled data.
''' '''
name = None name = None
def __init__(self, db): def __init__(self, db):
self.db = db self.db = db
self.conn, self.cursor = self.db.sql_open_connection() self.conn, self.cursor = self.db.sql_open_connection()
 End of changes. 1 change blocks. 
1 lines changed or deleted 2 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)