Mercurial > repos > yating-l > gonramp_apollo_tools
diff apolloUserManager.py @ 2:4be6fcac4bf2 draft default tip
planemo upload for repository https://github.com/Yating-L/suite_gonramp_apollo.git commit 5367a00befb467f162d1870edb91f9face72e894
author | yating-l |
---|---|
date | Wed, 29 Nov 2017 15:39:32 -0500 |
parents | 78af01d73add |
children |
line wrap: on
line diff
--- a/apolloUserManager.py Tue Nov 28 12:43:22 2017 -0500 +++ b/apolloUserManager.py Wed Nov 29 15:39:32 2017 -0500 @@ -48,9 +48,15 @@ # Set up apollo apollo = ApolloInstance(apollo_host, apollo_admin_user, toolDirectory) apollo.manageApolloUser(operations_dictionary) - + outHtml(outputFile, apollo_host) logging.info('#### Apollo User Manager: Congratulation! ####\n') +def outHtml(outputFile, host_name): + with open(outputFile, 'w') as htmlfile: + htmlstr = 'The Apollo User Manager has done with operations on Apollo: <br>' + jbrowse_hub = '<li><a href = "%s" target="_blank">View JBrowse Hub on Apollo</a></li>' % host_name + htmlstr += jbrowse_hub + htmlfile.write(htmlstr) if __name__ == "__main__":