mirror of
https://github.com/yweber/lodel2.git
synced 2025-10-26 09:39:01 +01:00
Bug fix
This commit is contained in:
parent
42ddd6909b
commit
6a6396f0d2
2 changed files with 3 additions and 3 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue