tree_panel_html = '<div id="tree_panel">' + search_form + html_features + buttons + '</div>' # Now we render the tree into image and get the HTML that handles it tree_html = application._get_tree_img(treeid = treeid) # Let's return enriched HTML return tree_panel_html + tree_html # ============================================================================== # # Main WSGI Application # # ============================================================================== # Create a basic ETE WebTreeApplication application = WebTreeApplication() # Set your temporal dir to allow web user to generate files. This two # paths should point to the same place, one using the absolute path in # your system, and the other the URL to access the same # directory. Note that the referred directory must be writable by the # webserver. #application.CONFIG["temp_dir"] = "/home/services/web/ete.cgenomics.org/webplugin/tmp/" application.CONFIG["temp_dir"] = "/var/www/etetoolkit.org/webplugin/tmp/" application.CONFIG["temp_url"] = "/webplugin/tmp/" # Relative to web site Document Root # Set the DISPLAY port that ETE should use to draw pictures. You will # need a X server installed in your server and allow webserver user to # access the display. If the X server is started by a different user # and www-data (usally the apache user) cannot access display, try # modifiying DISPLAY permisions by executing "xhost +"
# Now we render the tree into image and get the HTML that handles it tree_html = application._get_tree_img(treeid=treeid) # Let's return enriched HTML return tree_panel_html + tree_html # ============================================================================== # # Main WSGI Application # # ============================================================================== # Create a basic ETE WebTreeApplication application = WebTreeApplication() # Set your temporal dir to allow web user to generate files. This two # paths should point to the same place, one using the absolute path in # your system, and the other the URL to access the same # directory. Note that the referred directory must be writable by the # webserver. #application.CONFIG["temp_dir"] = "/home/services/web/ete.cgenomics.org/webplugin/tmp/" application.CONFIG["temp_dir"] = "/var/www/etetoolkit.org/webplugin/tmp/" application.CONFIG[ "temp_url"] = "/webplugin/tmp/" # Relative to web site Document Root # Set the DISPLAY port that ETE should use to draw pictures. You will # need a X server installed in your server and allow webserver user to # access the display. If the X server is started by a different user # and www-data (usally the apache user) cannot access display, try
# Now we render the tree into image and get the HTML that handles it tree_html = application._get_tree_img(treeid=treeid) # Let's return enriched HTML return tree_panel_html + tree_html # ============================================================================== # # Main WSGI Application # # ============================================================================== # Create a basic ETE WebTreeApplication application = WebTreeApplication() # Set your temporal dir to allow web user to generate files. This two # paths should point to the same place, one using the absolute path in # your system, and the other the URL to access the same # directory. Note that the referred directory must be writable by the # webserver. #application.CONFIG["temp_dir"] = "/home/services/web/ete.cgenomics.org/webpluin/tmp/" application.CONFIG["temp_dir"] = "/var/www/webplugin/tmp/" application.CONFIG[ "temp_url"] = "/webplugin/tmp/" # Relative to web site Document Root # Set the DISPLAY port that ETE should use to draw pictures. You will # need a X server installed in your server and allow webserver user to # access the display. If the X server is started by a different user # and www-data (usally the apache user) cannot access display, try