commit/galaxy-central: greg: Fix for the previous fix for rendering the "Skip tool test" section on the manage_repository page in the tool shed.
1 new commit in galaxy-central: https://bitbucket.org/galaxy/galaxy-central/commits/c0384bad246d/ Changeset: c0384bad246d User: greg Date: 2013-11-26 00:45:37 Summary: Fix for the previous fix for rendering the "Skip tool test" section on the manage_repository page in the tool shed. Affected #: 1 file diff -r 1a8070a3b08a65ae386b849548ecf921d916cf7a -r c0384bad246d60a0ca737685cc67eb17331b36fa templates/webapps/tool_shed/repository/manage_repository.mako --- a/templates/webapps/tool_shed/repository/manage_repository.mako +++ b/templates/webapps/tool_shed/repository/manage_repository.mako @@ -72,6 +72,17 @@ tip_str = '' sharable_link_label = 'Sharable link to this repository revision:' sharable_link_changeset_revision = changeset_revision + + if repository_metadata is None: + can_render_skip_tool_test_section = False + else: + if repository_metadata.changeset_revision is None: + can_render_skip_tool_test_section = False + else: + if includes_tools or repository.type == TOOL_DEPENDENCY_DEFINITION: + can_render_skip_tool_test_section = True + else: + can_render_skip_tool_test_section = False %><%! @@ -200,7 +211,7 @@ </div></div> ${render_repository_items( metadata, containers_dict, can_set_metadata=True, render_repository_actions_for='tool_shed' )} -%if includes_tools or repository.type == TOOL_DEPENDENCY_DEFINITION: +%if can_render_skip_tool_test_section: <p/><div class="toolForm"> %if repository.type == TOOL_DEPENDENCY_DEFINITION: @@ -209,7 +220,7 @@ <div class="toolFormTitle">Automated tool tests</div> %endif <div class="toolFormBody"> - <form name="skip_tool_tests" id="skip_tool_tests" action="${h.url_for( controller='repository', action='manage_repository', id=trans.security.encode_id( repository.id ), changeset_revision=changeset_revision )}" method="post" > + <form name="skip_tool_tests" id="skip_tool_tests" action="${h.url_for( controller='repository', action='manage_repository', id=trans.security.encode_id( repository.id ), changeset_revision=str( repository_metadata.changeset_revision ) )}" method="post" ><div class="form-row"> %if repository.type == TOOL_DEPENDENCY_DEFINITION: <label>Skip automated testing of this tool dependency recipe</label> 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)
-
commits-noreply@bitbucket.org