295
295
def regexp(pattern, item):
296
296
return re.search(pattern, item, re.I) and True or False
299
299
from pysqlite2 import dbapi2 as sqlite
301
301
connection = sqlite.connect(database)
302
302
connection.create_function('regexp', 2, regexp)
306
309
class DatabaseManager(dict):
309
312
self.log = logging.getLogger('core.databases')
310
314
for database in ibid.config.databases.keys():