mirror of
https://github.com/yweber/lodel2.git
synced 2025-10-26 09:39:01 +01:00
Revert
This commit is contained in:
parent
98ffe11d5f
commit
ffad9fc01c
2 changed files with 1 additions and 9 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue