132 |
start = self.count () + start |
start = self.count () + start |
133 |
result = [] |
result = [] |
134 |
c = 0 |
c = 0 |
135 |
object = self.firstInstance () |
instance = self.firstInstance () |
136 |
while (object != None) and (c < start + count): |
while (instance != None) and (c < start + count): |
137 |
if c >= start: |
if c >= start: |
138 |
row = [] |
result.append (instance.get (self._prefetch)) |
|
# add values in prefetch order (gnue_id, propertylist1, ...) |
|
|
for property in self._prefetch: |
|
|
value = object.get (property) |
|
|
# transfer None as "" |
|
|
if value == None: |
|
|
value = "" |
|
|
row.append (value) |
|
|
result.append (row) |
|
139 |
c += 1 |
c += 1 |
140 |
object = self.nextInstance () |
instance = self.nextInstance () |
141 |
return result |
return result |
142 |
|
|
143 |
# --------------------------------------------------------------------------- |
# --------------------------------------------------------------------------- |