>Can we have a little discussion on pros/cons of this? Does this make >mod_python dependent on sqlite?
Nope. It'll just silently fail if it can't import dbapi2. Rob >> +try: >> + # If this code is included into Session.py, >> + # we don't want to add a dependency to SQLite >> + from pysqlite2 import dbapi2 as sqlite >> +except: >> + pass >> +else: >> + class SQLiteSession(BaseSession):