|
|
@ -21,12 +21,17 @@ |
|
|
|
|
|
|
|
import os |
|
|
|
import logging |
|
|
|
|
|
|
|
import psycopg2 |
|
|
|
|
|
|
|
from openerp.osv import orm, fields |
|
|
|
from openerp.tools.translate import _ |
|
|
|
import openerp.tools as tools |
|
|
|
|
|
|
|
|
|
|
|
_logger = logging.getLogger(__name__) |
|
|
|
CONNECTORS = [('postgresql', 'PostgreSQL')] |
|
|
|
|
|
|
|
CONNECTORS = [] |
|
|
|
|
|
|
|
try: |
|
|
|
import sqlalchemy |
|
|
@ -62,9 +67,6 @@ except: |
|
|
|
_logger.info('Oracle libraries not available. Please install "cx_Oracle"\ |
|
|
|
python package.') |
|
|
|
|
|
|
|
import psycopg2 |
|
|
|
CONNECTORS.append(('postgresql', 'PostgreSQL')) |
|
|
|
|
|
|
|
|
|
|
|
class base_external_dbsource(orm.Model): |
|
|
|
_name = "base.external.dbsource" |
|
|
|