24 |
# and named. |
# and named. |
25 |
# The sqlite2 boolean variable is used to manage specific part of the code |
# The sqlite2 boolean variable is used to manage specific part of the code |
26 |
try: |
try: |
27 |
# Using SQLITE 2.x |
# Using SQLITE 2.x |
28 |
sqlite2 = True |
sqlite2 = True |
29 |
from pysqlite2 import dbapi2 as sqlite |
from pysqlite2 import dbapi2 as sqlite |
30 |
except ImportError: |
except ImportError: |
31 |
# Using SQLITE 1.x |
# Using SQLITE 1.x |
32 |
sqlite2 = False |
sqlite2 = False |
33 |
import sqlite |
import sqlite |
34 |
|
|
35 |
|
|
36 |
from base import TitledObject |
from base import TitledObject |
37 |
|
|