Roland Haroutiounian 8 years ago
parent
commit
6a6396f0d2
2 changed files with 3 additions and 3 deletions
  1. 2
    2
      lodel/leapi/leobject.py
  2. 1
    1
      plugins/mongodb_datasource/datasource.py

+ 2
- 2
lodel/leapi/leobject.py View File

@@ -265,8 +265,8 @@ class LeObject(object):
265 265
         expt_msg = "In LeAPI class '%s' " % cls.__name__
266 266
         if ds_name not in Settings.datasources._fields:
267 267
             #Checking that datasource exists
268
-            expt_msg += "Unknow or unconfigured datasource %s"
269
-            expt_msg %= (ds_name, cls.__name__)
268
+            expt_msg += "Unknown or unconfigured datasource %s"
269
+            expt_msg %= (ds_name) # , cls.__name__)
270 270
             raise SettingsError(expt_msg)
271 271
         try:
272 272
             #fetching plugin name

+ 1
- 1
plugins/mongodb_datasource/datasource.py View File

@@ -93,7 +93,7 @@ class MongoDbDatasource(object):
93 93
     def select(self, target, field_list, filters = None, rel_filters=None, order=None, group=None, limit=None,
94 94
                offset=0):
95 95
         results = list()
96
-        if target.abstract:
96
+        if hasattr(target, '_abstract') and target._abstract:
97 97
             target_childs = target.child_classes()
98 98
             for target_child in target_childs:
99 99
                 results.append(self.select(target=target_child, field_list=field_list, filters=filters,

Loading…
Cancel
Save