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 for candidates. Indexes into self.recon_candidates
# "c": ["/domain/type/id", ...] # "c": ["/domain/type/id", ...]
#} #}
self.recon_candidates = self.pool['reconCandidates'] # Recon data structure changed after Refine 2.0
#"/domain/type/id": { if 'reconCandidates' in self.pool:
# "id": "/domain/type/id", self.recon_candidates = self.pool['reconCandidates']
# "name": "...", #"/domain/type/id": {
# "score": 0.439394, # "id": "/domain/type/id",
# "types": ["/domain/type"] # "name": "...",
#} # "score": 0.439394,
# "types": ["/domain/type"]
#}
self.rows = self.RefineRows(response['rows']) self.rows = self.RefineRows(response['rows'])
return RowsResponse return RowsResponse