Skip to content

Commit

Permalink
Merged fix for searchable object interface for ZCatalogs
Browse files Browse the repository at this point in the history
  • Loading branch information
Unknown committed Aug 3, 2000
1 parent f367526 commit 3ff02b7
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions ZCatalog.py
Expand Up @@ -419,19 +419,23 @@ def index_objects(self):
def _searchable_arguments(self):
r = {}
n={'optional':1}
for name in self._catalog.indexes.keys():
for name in self._catalog.schema.keys():
r[name]=n
return r

def _searchable_result_columns(self):
r = []
for name in self._catalog.indexes.keys():
for name in self._catalog.schema.keys():
i = {}
i['name'] = name
i['type'] = 's'
i['parser'] = str
i['width'] = 8
r.append(i)
r.append({'name': 'data_record_id_',
'type': 's',
'parser': str,
'width': 8})
return r

def searchResults(self, REQUEST=None, used=None,
Expand Down

0 comments on commit 3ff02b7

Please sign in to comment.