~loggerhead-team/loggerhead/trunk-rich

« back to all changes in this revision

Viewing changes to loggerhead/changecache.py

  • Committer: Martin Albisetti
  • Date: 2008-07-25 01:32:19 UTC
  • mto: (157.1.3 loggerhead)
  • mto: This revision was merged to the branch mainline in revision 187.
  • Revision ID: argentina@gmail.com-20080725013219-a2f9vntlapuki522
 * Add javascript library to order stuff in tables
 * Make the fileview order-able

Show diffs side-by-side

added added

removed removed

Lines of Context:
33
33
 
34
34
with_lock = util.with_lock('_lock', 'ChangeCache')
35
35
 
36
 
SQLITE_INTERFACE = os.environ.get('SQLITE_INTERFACE', 'sqlite3')
 
36
SQLITE_INTERFACE = os.environ.get('SQLITE_INTERFACE', 'sqlite')
37
37
 
38
 
if SQLITE_INTERFACE == 'sqlite3':
39
 
    from sqlite3 import dbapi2
 
38
if SQLITE_INTERFACE == 'pysqlite2':
 
39
    from pysqlite2 import dbapi2
40
40
    _param_marker = '?'
 
41
elif SQLITE_INTERFACE == 'sqlite':
 
42
    import sqlite as dbapi2
 
43
    _param_marker = '%s'
 
44
 
41
45
 
42
46
_select_stmt = ("select data from revisiondata where revid = ?"
43
47
                ).replace('?', _param_marker)