1
0
Fork 0
mirror of https://github.com/yweber/lodel2.git synced 2025-10-26 09:39:01 +01:00
This commit is contained in:
Roland Haroutiounian 2016-06-22 16:55:22 +02:00
commit ffad9fc01c
2 changed files with 1 additions and 9 deletions

View file

@ -98,10 +98,6 @@ class MongoDbDatasource(object):
collection_name = object_collection_name(target)
collection = self.database[collection_name]
if not target.abstract:
# Add the class name to the filters
filters.append(('classname', '=', target.__name__))
query_filters = self.__process_filters(
target, filters, rel_filters)
query_result_ordering = None

View file

@ -67,11 +67,7 @@ def connect(host, port, db_name, username, password):
# @param class_object EmClass
# @return str
def object_collection_name(class_object):
if class_object.abstract:
return class_object.__name__
else:
return object_collection_name(class_object.__base__)
return class_object.__name__
## @brief Determine a collection field name given a lodel2 fieldname
# @note For the moment this method only return the argument but EVERYWHERE