Mercurial > repos > bernhardlutz > rest_tool
diff rest_tool.py @ 8:3c1e862e8cd6 draft
Uploaded
| author | bernhardlutz |
|---|---|
| date | Fri, 02 May 2014 05:40:28 -0400 |
| parents | 9ee84d9fd3a7 |
| children |
line wrap: on
line diff
--- a/rest_tool.py Thu Apr 03 06:51:54 2014 -0400 +++ b/rest_tool.py Fri May 02 05:40:28 2014 -0400 @@ -6,7 +6,7 @@ import readfile txt_output=["cids", "aids", "sids", "synonyms" ] -csv_output=["assaysummary"] +csv_output=["assaysummary", "property"] check_for_id_type=["cids", "aids", "sids"] def main(args): @@ -23,6 +23,8 @@ idlist=readfile.getListFromFile(args.id_file) idstring=",".join(idlist) url+=idstring+"/"+args.operation+"/" + if args.operation == "property": + url+=args.property_value+"/" if args.operation in csv_output: url+="csv" elif args.operation in txt_output:
