Guard use of reconCandidates

which existed only up to Refine 2.0
This commit is contained in:
Paul Makepeace 2011-06-23 09:50:56 +00:00
parent a9066491a7
commit 4405e4a9b1
1 changed files with 9 additions and 7 deletions

View File

@ -249,13 +249,15 @@ def RowsResponseFactory(column_index):
# # c for candidates. Indexes into self.recon_candidates
# "c": ["/domain/type/id", ...]
#}
self.recon_candidates = self.pool['reconCandidates']
#"/domain/type/id": {
# "id": "/domain/type/id",
# "name": "...",
# "score": 0.439394,
# "types": ["/domain/type"]
#}
# Recon data structure changed after Refine 2.0
if 'reconCandidates' in self.pool:
self.recon_candidates = self.pool['reconCandidates']
#"/domain/type/id": {
# "id": "/domain/type/id",
# "name": "...",
# "score": 0.439394,
# "types": ["/domain/type"]
#}
self.rows = self.RefineRows(response['rows'])
return RowsResponse