commit/galaxy-central: dannon: 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.
1 new commit in galaxy-central: https://bitbucket.org/galaxy/galaxy-central/changeset/dae7eefe2f71/ changeset: dae7eefe2f71 user: dannon date: 2012-04-10 22:46:49 summary: 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. affected #: 3 files diff -r d59674927a521dec8619441ac8801807e150392d -r dae7eefe2f710313ed5bb9e19cd484cbc395bab8 lib/galaxy/config.py --- a/lib/galaxy/config.py +++ b/lib/galaxy/config.py @@ -106,6 +106,7 @@ 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 ) diff -r d59674927a521dec8619441ac8801807e150392d -r dae7eefe2f710313ed5bb9e19cd484cbc395bab8 templates/show_params.mako --- a/templates/show_params.mako +++ b/templates/show_params.mako @@ -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"> diff -r d59674927a521dec8619441ac8801807e150392d -r dae7eefe2f710313ed5bb9e19cd484cbc395bab8 universe_wsgi.ini.sample --- a/universe_wsgi.ini.sample +++ b/universe_wsgi.ini.sample @@ -678,6 +678,10 @@ #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 Repository URL: https://bitbucket.org/galaxy/galaxy-central/ -- This is a commit notification from bitbucket.org. You are receiving this because you have the service enabled, addressing the recipient of this email.
participants (1)
-
Bitbucket