Project

General

Profile

« Previous | Next » 

Revision 9911

lib/tnrs.py: updated HTTP requests to match current web app

View differences:

lib/tnrs.py
28 28
    'X-GWT-Permutation': '574AA16D15D917C7704646FD92AFF6B3',
29 29
}
30 30
submission_request_template = ('7|0|7|'+url_base+
31
'||org.iplantc.tnrs.demo.client.SearchService|doSearch|\
31
'|1E87C78041CEFBF0992F46BDF84D7D60|org.iplantc.tnrs.demo.client.SearchService|doSearch|\
32 32
java.lang.String/2004016611|{"sources":"gcc,tropicos", "names":"[names]"\
33 33
, "type":"matching", "taxonomic":"true", "classification":"tropicos", \
34 34
"match_to_rank":"true"}|0.05|1|2|3|4|2|5|5|6|7|')
......
50 50
'|1E87C78041CEFBF0992F46BDF84D7D60|org.iplantc.tnrs.demo.client.SearchService|\
51 51
downloadRemoteResults|java.lang.String/2004016611|{"name":"tnrs_results.txt", \
52 52
"mode":"Best", "type":"Detailed", "encoding":"utf8", "dirty":"true", \
53
"sources":"false", "taxonomic":"false", "email":"tnrs@lka5jjs.orv", \
53
"sources":"false", "taxonomic":"true", "email":"tnrs@lka5jjs.orv", \
54 54
"key":"[key]"}|1|2|3|4|1|5|6|')
55 55
download_response_pattern = '^//OK\[1,\["(.*)"\],0,7\]$'
56 56
download_url_suffix = '&name=tnrs_results.txt&encoding=utf8'

Also available in: Unified diff