|
@@ -64,7 +64,7 @@ class LeQuery(object):
|
64
|
64
|
LodelHook.call_hook( self._hook_prefix+'_pre',
|
65
|
65
|
self._target_class,
|
66
|
66
|
datas)
|
67
|
|
- ret = self.__query(self._datasource, **datas)
|
|
67
|
+ ret = self.__query(self._target_class._datasource, **datas)
|
68
|
68
|
ret = LodelHook.call_hook( self._hook_prefix+'_post',
|
69
|
69
|
self._target_class,
|
70
|
70
|
ret)
|
|
@@ -461,6 +461,7 @@ class LeInsertQuery(LeQuery):
|
461
|
461
|
if nb_inserted < 0:
|
462
|
462
|
raise LeQueryError("Insertion error")
|
463
|
463
|
return nb_inserted
|
|
464
|
+ """
|
464
|
465
|
## @brief Implements an insert query operation, with multiple insertions
|
465
|
466
|
# @param datas : list of **datas to be inserted
|
466
|
467
|
def __query(self, datas):
|
|
@@ -469,6 +470,7 @@ class LeInsertQuery(LeQuery):
|
469
|
470
|
if nb_inserted < 0:
|
470
|
471
|
raise LeQueryError("Multiple insertions error")
|
471
|
472
|
return nb_inserted
|
|
473
|
+ """
|
472
|
474
|
|
473
|
475
|
## @brief Execute the insert query
|
474
|
476
|
def execute(self, **datas):
|