|
@@ -8,6 +8,25 @@ class LeDataSource(object):
|
8
|
8
|
self.options = options
|
9
|
9
|
|
10
|
10
|
|
|
11
|
+ ## @brief update an existing LeObject
|
|
12
|
+ # @param lodel_id (int) : list of lodel_id
|
|
13
|
+ # @param checked_data dict
|
|
14
|
+ # @param datasource_filters (string)
|
|
15
|
+ def update(self, lodel_id, checked_data, datasource_filters):
|
|
16
|
+ return True
|
|
17
|
+
|
|
18
|
+ ## @brief insert
|
|
19
|
+ # @param typename string
|
|
20
|
+ # @param classname string
|
|
21
|
+ # @param **datas dict
|
|
22
|
+ def insert(self, typename, classname, **datas):
|
|
23
|
+ return True
|
|
24
|
+
|
|
25
|
+ ## @brief delete
|
|
26
|
+ # @param lodel_id (int) : list of lode_id(s) to delete
|
|
27
|
+ def delete(self, lodel_id):
|
|
28
|
+ return True
|
|
29
|
+
|
11
|
30
|
## @brief search for a collection of objects
|
12
|
31
|
# @param emclass LeClass : LeClass instance
|
13
|
32
|
# @param emtype LeType : LeType instance
|
|
@@ -15,5 +34,5 @@ class LeDataSource(object):
|
15
|
34
|
# @param filters list : list of tuples formatted as (FIELD, OPERATOR, VALUE)
|
16
|
35
|
# @param relational_filters
|
17
|
36
|
def get(self, emclass, emtype, field_list, filters, relational_filters):
|
18
|
|
- return False
|
|
37
|
+ return {}
|
19
|
38
|
|