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
         collection_name = object_collection_name(target)
98
         collection_name = object_collection_name(target)
99
         collection = self.database[collection_name]
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
         query_filters = self.__process_filters(
101
         query_filters = self.__process_filters(
106
             target, filters, rel_filters)
102
             target, filters, rel_filters)
107
         query_result_ordering = None
103
         query_result_ordering = None

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

67
 # @param class_object EmClass
67
 # @param class_object EmClass
68
 # @return str
68
 # @return str
69
 def object_collection_name(class_object):
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
 ## @brief Determine a collection field name given a lodel2 fieldname
72
 ## @brief Determine a collection field name given a lodel2 fieldname
77
 # @note For the moment this method only return the argument but EVERYWHERE
73
 # @note For the moment this method only return the argument but EVERYWHERE

Loading…
Cancel
Save