1
0
Fork 0
mirror of https://github.com/yweber/lodel2.git synced 2025-10-26 02:39:01 +02:00
This commit is contained in:
Roland Haroutiounian 2016-06-24 12:24:49 +02:00
commit 6a6396f0d2
2 changed files with 3 additions and 3 deletions

View file

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

View file

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