Use direct access to backend classes
issue8836 review258421002
This commit is contained in:
1 parent
cd07a67109
commit
cd95da3b30
2 files changed
+2
-4
No files matched your search
+1
-2
@@ -40,8 +40,7 @@ class _ConfigurationValue(ModelSQL):
|
||||
|
||||
@classmethod
|
||||
def __register__(cls, module_name):
|
||||
TableHandler = backend.get('TableHandler')
|
||||
exist = TableHandler.table_exist(cls._table)
|
||||
exist = backend.TableHandler.table_exist(cls._table)
|
||||
|
||||
super(_ConfigurationValue, cls).__register__(module_name)
|
||||
|
||||
|
||||
@@ -278,9 +278,8 @@ class PartyLang(ModelSQL, ValueMixin):
|
||||
def __register__(cls, module_name):
|
||||
pool = Pool()
|
||||
Party = pool.get('party.party')
|
||||
TableHandler = backend.get('TableHandler')
|
||||
cursor = Transaction().connection.cursor()
|
||||
exist = TableHandler.table_exist(cls._table)
|
||||
exist = backend.TableHandler.table_exist(cls._table)
|
||||
table = cls.__table__()
|
||||
party = Party.__table__()
|
||||
|
||||
|
||||
Reference in new issue
Block a user