From c995fd7c9b2d445ad020960444e67a987f97761a Mon Sep 17 00:00:00 2001 From: mdipierro Date: Sat, 12 Aug 2017 16:08:55 -0500 Subject: [PATCH] possible fix for tTIZLy33Yw8 --- pydal/base.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pydal/base.py b/pydal/base.py index 8d27bf21d..aec355db9 100644 --- a/pydal/base.py +++ b/pydal/base.py @@ -519,7 +519,7 @@ def import_table_definitions(self, path, migrate=False, else: pattern = pjoin(path, self._uri_hash + '_*.table') for filename in glob.glob(pattern): - tfile = self._adapter.file_open(filename, 'r') + tfile = self._adapter.migrator.file_open(filename, 'r') try: sql_fields = pickle.load(tfile) name = filename[len(pattern) - 7:-6] @@ -537,7 +537,7 @@ def import_table_definitions(self, path, migrate=False, **dict(migrate=migrate, fake_migrate=fake_migrate)) finally: - self._adapter.file_close(tfile) + self._adapter.migrator.file_close(tfile) def check_reserved_keyword(self, name): """