diff util/subtools.py @ 31:127037c49bc8 draft

planemo upload for repository https://github.com/Yating-L/jbrowse-archive-creator.git commit 691e5366893905d30943a3cb8cdfb6341f0f5362-dirty
author yating-l
date Mon, 16 Oct 2017 18:03:58 -0400
parents 31a41ce128cc
children 7b955a58d8f2
line wrap: on
line diff
--- a/util/subtools.py	Fri Oct 13 16:19:03 2017 -0400
+++ b/util/subtools.py	Mon Oct 16 18:03:58 2017 -0400
@@ -342,7 +342,10 @@
     array_call = ['arrow', 'users', 'create_user', user_email, firstname, lastname, password]
     if admin:
         array_call += ['--role', 'admin']
+    logging.debug("%s", array_call)
+    print array_call
     p = subprocess.check_output(array_call)
+    print ("p = %s", p)
     return p
 
 def arrow_update_organism_permissions(user_id, organism, **user_permissions):
@@ -364,9 +367,12 @@
 
 def arrow_get_users(user_email):
     array_call = ['arrow', 'users', 'get_users']
+    logging.debug("%s", array_call)
+    print array_call
     p = subprocess.check_output(array_call)
     all_users = json.loads(p)
     for d  in all_users:
         if d['username'] == user_email:
             return d['userId']
     logging.error("Cannot find user %s", user_email)
+