Upgrade to new backend and timestamp field
review1012002
This commit is contained in:
1 parent
5e2fe6e363
commit
04b26a135c
2 files changed
+3
-2
No files matched your search
@@ -351,6 +351,7 @@ class MetaModelFactory(object):
|
||||
'reference': ReferenceDescriptor,
|
||||
'date': DateDescriptor,
|
||||
'datetime': DateTimeDescriptor,
|
||||
'timestamp': DateTimeDescriptor,
|
||||
'time': TimeDescriptor,
|
||||
'dict': DictDescriptor,
|
||||
'many2one': Many2OneDescriptor,
|
||||
|
||||
+2
-2
@@ -181,7 +181,7 @@ class TrytondConfig(Config):
|
||||
if database_type is not None:
|
||||
CONFIG['db_type'] = database_type
|
||||
from trytond.pool import Pool
|
||||
from trytond.backend import Database
|
||||
from trytond import backend
|
||||
from trytond.protocols.dispatcher import create
|
||||
from trytond.cache import Cache
|
||||
from trytond.transaction import Transaction
|
||||
@@ -197,7 +197,7 @@ class TrytondConfig(Config):
|
||||
|
||||
Pool.start()
|
||||
|
||||
database = Database().connect()
|
||||
database = backend.get('Database')().connect()
|
||||
cursor = database.cursor()
|
||||
try:
|
||||
databases = database.list(cursor)
|
||||
|
||||
Reference in new issue
Block a user