# HG changeset patch -- Bitbucket.org # Project galaxy-dist # URL http://bitbucket.org/galaxy/galaxy-dist/overview # User jeremy goecks <jeremy.goecks@emory.edu> # Date 1287605437 14400 # Node ID c375c4a8e4e42e5e29e996f3472aacdbdc3d22e0 # Parent 647ca0049221bcadde31559d6a99a6ccf236d134 Fix more unicode issues when listing and running workflows. --- a/templates/workflow/list_for_run.mako +++ b/templates/workflow/list_for_run.mako @@ -36,7 +36,7 @@ %for i, workflow in enumerate( workflows ): <tr><td> - <a href="${h.url_for( action='run', id=trans.security.encode_id(workflow.id) )}">${workflow.name}</a> + <a href="${h.url_for( action='run', id=trans.security.encode_id(workflow.id) )}">${h.to_unicode( workflow.name )}</a><a id="wf-${i}-popup" class="popup-arrow" style="display: none;">▼</a></td><td>${len(workflow.latest_workflow.steps)}</td> --- a/templates/workflow/run.mako +++ b/templates/workflow/run.mako @@ -119,7 +119,7 @@ from galaxy.jobs.actions.post import Act </div></%def> -<h2>Running workflow "${workflow.name}"</h2> +<h2>Running workflow "${h.to_unicode( workflow.name )}"</h2> %if has_upgrade_messages: <div class="warningmessage"> @@ -130,7 +130,7 @@ from galaxy.jobs.actions.post import Act %endif <form id="tool_form" name="tool_form" method="POST"> -## <input type="hidden" name="workflow_name" value="${workflow.name | h}" /> +## <input type="hidden" name="workflow_name" value="${h.to_unicode( workflow.name ) | h}" /> %for i, step in enumerate( steps ): %if step.type == 'tool' or step.type is None: <% tool = app.toolbox.tools_by_id[step.tool_id] %> @@ -153,7 +153,7 @@ from galaxy.jobs.actions.post import Act % if step.annotations: <hr/><div class='form-row'> - <label>Annotation:</label> ${step.annotations[0].annotation} + <label>Annotation:</label> ${h.to_unicode( step.annotations[0].annotation )} </div> % endif </div>