changeset dc471542cab3 in modules/sale:default
details: https://hg.tryton.org/modules/sale?cmd=changeset;node=dc471542cab3
description:
        Use direct access to backend classes

        issue8836
        review258421002
diffstat:

 configuration.py |  6 ++----
 1 files changed, 2 insertions(+), 4 deletions(-)

diffs (23 lines):

diff -r 83370004cba3 -r dc471542cab3 configuration.py
--- a/configuration.py  Wed Dec 04 11:09:36 2019 +0100
+++ b/configuration.py  Fri Dec 06 17:33:46 2019 +0100
@@ -82,8 +82,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(ConfigurationSequence, cls).__register__(module_name)
 
@@ -119,8 +118,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(ConfigurationSaleMethod, cls).__register__(module_name)
 

Reply via email to