changeset 1278d4325991 in modules/party:default
details: https://hg.tryton.org/modules/party?cmd=changeset;node=1278d4325991
description:
Use direct access to backend classes
issue8836
review258421002
diffstat:
configuration.py | 3 +--
party.py | 3 +--
2 files changed, 2 insertions(+), 4 deletions(-)
diffs (27 lines):
diff -r 629c85985356 -r 1278d4325991 configuration.py
--- a/configuration.py Wed Dec 04 11:09:35 2019 +0100
+++ b/configuration.py Fri Dec 06 17:33:46 2019 +0100
@@ -40,8 +40,7 @@
@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)
diff -r 629c85985356 -r 1278d4325991 party.py
--- a/party.py Wed Dec 04 11:09:35 2019 +0100
+++ b/party.py Fri Dec 06 17:33:46 2019 +0100
@@ -278,9 +278,8 @@
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__()