fixed issue 1795:MongoDB: DAL instantiation dict definition error, thanks Alan

This commit is contained in:
mdipierro
2013-12-02 02:07:17 -06:00
parent 3f61d725c4
commit 55cbc1830a
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -1 +1 @@
Version 2.8.2-stable+timestamp.2013.12.01.09.59.08
Version 2.8.2-stable+timestamp.2013.12.02.02.05.46
+1 -1
View File
@@ -7808,11 +7808,11 @@ class DAL(object):
def import_table_definitions(self, path, migrate=False,
fake_migrate=False, tables=None):
pattern = pjoin(path,self._uri_hash+'_*.table')
if tables:
for table in tables:
self.define_table(**table)
else:
pattern = pjoin(path,self._uri_hash+'_*.table')
for filename in glob.glob(pattern):
tfile = self._adapter.file_open(filename, 'r')
try: