Add a " LIMIT " keyword in conditions
This commit is contained in:
parent
e877f8faa6
commit
d73c6b2245
3 changed files with 23 additions and 3 deletions
|
|
@ -278,8 +278,13 @@ class Application(object):
|
|||
|
||||
def _do_complete_iter(self, backend, count, fields, res):
|
||||
modif = 0
|
||||
|
||||
for i, sub in enumerate(res):
|
||||
sub = self._do_complete_obj(backend, fields, sub)
|
||||
if self.condition and self.condition.limit and \
|
||||
self.condition.limit == i:
|
||||
return
|
||||
|
||||
if self.condition and not self.condition.is_valid(sub):
|
||||
modif += 1
|
||||
else:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue