|
@ -34,13 +34,15 @@ try: |
|
|
try: |
|
|
try: |
|
|
import pymssql |
|
|
import pymssql |
|
|
CONNECTORS.append(('mssql', 'Microsoft SQL Server')) |
|
|
CONNECTORS.append(('mssql', 'Microsoft SQL Server')) |
|
|
except: |
|
|
|
|
|
|
|
|
assert pymssql |
|
|
|
|
|
except ImportError, AssertionError: |
|
|
_logger.info('MS SQL Server not available. Please install "pymssql"\ |
|
|
_logger.info('MS SQL Server not available. Please install "pymssql"\ |
|
|
python package.') |
|
|
python package.') |
|
|
try: |
|
|
try: |
|
|
import MySQLdb |
|
|
import MySQLdb |
|
|
CONNECTORS.append(('mysql', 'MySQL')) |
|
|
CONNECTORS.append(('mysql', 'MySQL')) |
|
|
except: |
|
|
|
|
|
|
|
|
assert MySQLdb |
|
|
|
|
|
except ImportError, AssertionError: |
|
|
_logger.info('MySQL not available. Please install "mysqldb"\ |
|
|
_logger.info('MySQL not available. Please install "mysqldb"\ |
|
|
python package.') |
|
|
python package.') |
|
|
except: |
|
|
except: |
|
@ -171,5 +173,3 @@ Sample connection strings: |
|
|
# TODO: if OK a (wizard) message box should be displayed |
|
|
# TODO: if OK a (wizard) message box should be displayed |
|
|
raise orm.except_orm(_("Connection test succeeded!"), |
|
|
raise orm.except_orm(_("Connection test succeeded!"), |
|
|
_("Everything seems properly set up!")) |
|
|
_("Everything seems properly set up!")) |
|
|
|
|
|
|
|
|
#EOF |
|
|
|