def format_jnlp_file_lines(web_flag, url, tep_fp):
 lines = [jnlp_top_block]
 if web_flag:
  lines += ['http://topiaryexplorer.sourceforge.net/app/']
 else:
  topiaryexplorer_project_dir = load_qiime_config()['topiaryexplorer_project_dir']
  if topiaryexplorer_project_dir:
   lines += [('file:' + topiaryexplorer_project_dir)]
  else:
   print "WARNING: Couldn't create jnlp file - topiaryexplorer_project_dir is not defined in your qiime_config. tep file was created sucessfully."
 lines += [jnlp_middle_block]
 if url:
  lines += [url]
 else:
  lines += [abspath(tep_fp)]
 lines += [jnlp_bottom_block]
 return lines

def format_jnlp_file_lines ( web_flag , url , tep_fp ) : lines = [ jnlp_top_block ] if web_flag : lines += [ 'http://topiaryexplorer.sourceforge.net/app/' ] else : topiaryexplorer_project_dir = load_qiime_config ( ) [ 'topiaryexplorer_project_dir' ] if topiaryexplorer_project_dir : lines += [ ( 'file:' + topiaryexplorer_project_dir ) ] else : print "WARNING: Couldn't create jnlp file - topiaryexplorer_project_dir is not defined in your qiime_config. tep file was created sucessfully." lines += [ jnlp_middle_block ] if url : lines += [ url ] else : lines += [ abspath ( tep_fp ) ] lines += [ jnlp_bottom_block ] return lines
format the jnlp file for topiaryexplorer .