From 70fe0ec2918f4a63fe3eadca2b40a1712ef241b8 Mon Sep 17 00:00:00 2001 From: Juanjo Garcia Date: Wed, 11 Dec 2019 11:16:18 +0100 Subject: [PATCH] Use direct access to backend classes. --- party.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/party.py b/party.py index b710fd3..8b171ab 100644 --- a/party.py +++ b/party.py @@ -32,16 +32,15 @@ class Party(metaclass=PoolMeta): @classmethod def __register__(cls, module_name): - TableHandler = backend.get('TableHandler') cursor = Transaction().connection.cursor() - table = TableHandler(cls, module_name) + table = backend.TableHandler(cls, module_name) created_347 = table.column_exist('include_347') super(Party, cls).__register__(module_name) # We need to reload table as it may be modified by __register__ - table = TableHandler(cls, module_name) + table = backend.TableHandler(cls, module_name) if (not created_347 and table.column_exist('include_347')): sql_table = cls.__table__() identifier = Pool().get('party.identifier').__table__()