49 |
# --------------------------------------------------------------------------- |
# --------------------------------------------------------------------------- |
50 |
|
|
51 |
def setPrefetch (self, prefetch): |
def setPrefetch (self, prefetch): |
52 |
if type (prefetch) == type (""): |
self._prefetch = prefetch |
|
self._prefetch = string.split (prefetch,",") |
|
|
elif type (prefetch) == type ([]): |
|
|
self._prefetch = prefetch |
|
|
else: |
|
|
raise Error,"Wrong format of prefetch information." |
|
53 |
# test if all properties in prefetch list are valid and find column names |
# test if all properties in prefetch list are valid and find column names |
54 |
self._prefColumns = [] |
self._prefColumns = [] |
55 |
for propertyname in self._prefetch: |
for propertyname in self._prefetch: |