fixed issue 1795:MongoDB: DAL instantiation dict definition error, thanks Alan
This commit is contained in:
@@ -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
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user