Roland Haroutiounian 8 years ago
parent
commit
ffad9fc01c
2 changed files with 1 additions and 9 deletions
  1. 0
    4
      plugins/mongodb_datasource/datasource.py
  2. 1
    5
      plugins/mongodb_datasource/utils.py

+ 0
- 4
plugins/mongodb_datasource/datasource.py View File

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

+ 1
- 5
plugins/mongodb_datasource/utils.py View File

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

Loading…
Cancel
Save