Mercurial > repos > eric-rasche > apollo
diff create_or_update_organism.py @ 7:f9a6e151b3b4 draft
planemo upload for repository https://github.com/TAMU-CPT/galaxy-webapollo commit 52b9e5bf6a6efb09a5cb845ee48703651c644174
author | eric-rasche |
---|---|
date | Tue, 27 Jun 2017 04:05:17 -0400 |
parents | 7610987e0c48 |
children |
line wrap: on
line diff
--- a/create_or_update_organism.py Sat Mar 04 18:00:52 2017 -0500 +++ b/create_or_update_organism.py Tue Jun 27 04:05:17 2017 -0400 @@ -1,4 +1,5 @@ #!/usr/bin/env python +from __future__ import print_function import sys import json import argparse @@ -85,8 +86,8 @@ if args.group: group = wa.groups.loadGroupByName(name=args.group) res = wa.groups.updateOrganismPermission(group, org_cn, - administrate=False, write=True, read=True, - export=True) + administrate=False, write=True, read=True, + export=True) data = [o for o in data if o['commonName'] == org_cn] print(json.dumps(data, indent=2))