equal
deleted
inserted
replaced
4 * get data from the parent plan, the latest step, temporary table... |
4 * get data from the parent plan, the latest step, temporary table... |
5 * each step has is own members (this is not necessarily bad, but a bit messy |
5 * each step has is own members (this is not necessarily bad, but a bit messy |
6 for now) |
6 for now) |
7 |
7 |
8 :organization: Logilab |
8 :organization: Logilab |
9 :copyright: 2003-2008 LOGILAB S.A. (Paris, FRANCE), all rights reserved. |
9 :copyright: 2003-2009 LOGILAB S.A. (Paris, FRANCE), all rights reserved. |
10 :contact: http://www.logilab.fr/ -- mailto:contact@logilab.fr |
10 :contact: http://www.logilab.fr/ -- mailto:contact@logilab.fr |
11 """ |
11 """ |
12 __docformat__ = "restructuredtext en" |
12 __docformat__ = "restructuredtext en" |
13 |
13 |
14 from rql.nodes import VariableRef, Variable, Function |
14 from rql.nodes import VariableRef, Variable, Function |
272 result = set() |
272 result = set() |
273 for step in self.children: |
273 for step in self.children: |
274 result &= frozenset(step.execute()) |
274 result &= frozenset(step.execute()) |
275 result = list(result) |
275 result = list(result) |
276 if self.offset: |
276 if self.offset: |
277 result = result[offset:] |
277 result = result[self.offset:] |
278 if self.limit: |
278 if self.limit: |
279 result = result[:limit] |
279 result = result[self.:limit] |
280 return result |
280 return result |
281 |
281 |
282 |
282 |
283 class UnionFetchStep(Step): |
283 class UnionFetchStep(Step): |
284 """union results of child steps using temporary tables (e.g. FetchStep)""" |
284 """union results of child steps using temporary tables (e.g. FetchStep)""" |