New config option, and change in default behavior regarding dataset path display in View Details. Administrators can now *always* see the full path, and if the expose_dataset_path option is True, so can regular users.

This commit is contained in:
Dannon Baker
2012-04-10 16:46:49 -04:00
parent 2d5b8eca2f
commit 68c9d80fe8
3 changed files with 8 additions and 0 deletions
+1
View File
@@ -106,6 +106,7 @@ class Configuration( object ):
self.smtp_username = kwargs.get( 'smtp_username', None )
self.smtp_password = kwargs.get( 'smtp_password', None )
self.start_job_runners = kwargs.get( 'start_job_runners', None )
self.expose_dataset_path = string_as_bool( kwargs.get( 'expose_dataset_path', 'False' ) )
# External Service types used in sample tracking
self.external_service_type_config_file = resolve_path( kwargs.get( 'external_service_type_config_file', 'external_service_types_conf.xml' ), self.root )
self.external_service_type_path = resolve_path( kwargs.get( 'external_service_type_path', 'external_service_types' ), self.root )
+3
View File
@@ -52,6 +52,9 @@
<tr><td>Tool Version:</td><td>${hda.tool_version}</td></tr>
<tr><td>Tool Standard Output:</td><td><a href="${h.url_for( controller='dataset', action='stdout')}">stdout</a></td></tr>
<tr><td>Tool Standard Error:</td><td><a href="${h.url_for( controller='dataset', action='stderr')}">stderr</a></td></tr>
%if trans.user_is_admin() or trans.app.config.expose_dataset_path:
<tr><td>Full Path:</td><td>${hda.file_name}</td></tr>
%endif
</table>
<br />
<table class="tabletip">
+4
View File
@@ -678,6 +678,10 @@ use_interactive = True
#pbs_stage_path =
#pbs_dataset_server =
# This option allows users to see the full path of datasets via the "View
# Details" option in the history. Administrators can always see this.
#expose_dataset_path = False
# ---- Per-Tool Job Management ----------------------------------------------
# Per-tool job handler and runner overrides. Parameters can be included to define multiple