Revision 14597
Added by Aaron Marcuse-Kubitza over 10 years ago
trunk/lib/tnrs.py | ||
---|---|---|
241 | 241 |
response = urllib2.urlopen(request_obj) |
242 | 242 |
response_info = str(response.info()) |
243 | 243 |
debug_log('response info', response_info) |
244 |
return TnrsOutputStream(response)
|
|
244 |
output_stream = response
|
|
245 | 245 |
else: |
246 | 246 |
debug_log('Expand') |
247 | 247 |
request = ('7|0|6|http://tnrs.iplantcollaborative.org/tnrsdemo/|\ |
... | ... | |
254 | 254 |
response, response, response_info) |
255 | 255 |
data_json = json.loads(gwt_decode(data_gwt)) |
256 | 256 |
raise NotImplementedError() |
257 |
return TnrsOutputStream(output_stream) |
|
257 | 258 |
finally: |
258 | 259 |
profiler.stop(name_ct) |
259 | 260 |
sys.stderr.write(profiler.msg()+'\n') |
Also available in: Unified diff
lib/tnrs.py: single_tnrs_request(): factored out wrapping in TnrsOutputStream, since this is done for both modes