|
@@ -528,7 +528,7 @@ target to LeUpdateQuery constructor"
|
528
|
528
|
#@returns the number of updated items
|
529
|
529
|
#@todo change stategy for instance update. Datas should be allowed
|
530
|
530
|
#for execute method (and query)
|
531
|
|
- def _query(self, filters, rel_filters, datas):
|
|
531
|
+ def _query(self, datas):
|
532
|
532
|
uid_name = self._target_class._uid[0]
|
533
|
533
|
if self.__leobject_instance is not None:
|
534
|
534
|
#Instance update
|
|
@@ -629,7 +629,7 @@ class LeGetQuery(LeFilteredQuery):
|
629
|
629
|
if 'group' in kwargs:
|
630
|
630
|
#check kwargs['group']
|
631
|
631
|
self.__group = kwargs['group']
|
632
|
|
- if 'limit' in kwargs:
|
|
632
|
+ if 'limit' in kwargs and kwargs['limit'] is not None:
|
633
|
633
|
try:
|
634
|
634
|
self.__limit = int(kwargs['limit'])
|
635
|
635
|
if self.__limit <= 0:
|
|
@@ -670,7 +670,7 @@ class LeGetQuery(LeFilteredQuery):
|
670
|
670
|
|
671
|
671
|
##@brief Implements select query operations
|
672
|
672
|
# @returns a list containing the item(s)
|
673
|
|
- def _query(self):
|
|
673
|
+ def _query(self, datas = None):
|
674
|
674
|
# select datas corresponding to query_filter
|
675
|
675
|
l_datas=self._ro_datasource.select( self._target_class,
|
676
|
676
|
list(self.field_list),
|