Skip to content

Commit

Permalink
possible fix for tTIZLy33Yw8
Browse files Browse the repository at this point in the history
  • Loading branch information
mdipierro committed Aug 12, 2017
1 parent c707d55 commit c995fd7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pydal/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand All @@ -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):
"""
Expand Down

0 comments on commit c995fd7

Please sign in to comment.