]> git.openstreetmap.org Git - osqa.git/blob - forum_modules/mysqlfulltext/__init__.py
OSQA-829, resolves a unicode problem when answering question, use smart_unicode for...
[osqa.git] / forum_modules / mysqlfulltext / __init__.py
1 from forum.base import get_database_engine
2 database_type = get_database_engine()
3
4 NAME = 'Mysql Full Text Search'
5 DESCRIPTION = "Enables Mysql full text search functionality."
6
7 try:
8     import MySQLdb
9     import settings_local
10     CAN_USE = 'mysql' in database_type
11 except Exception, e:
12     import traceback
13     traceback.print_exc()
14     CAN_USE = False