details: http://www.bx.psu.edu/hg/galaxy/rev/182a7947e63a changeset: 3460:182a7947e63a user: jeremy goecks <jeremy.goecks@emory.edu> date: Tue Mar 02 11:17:05 2010 -0500 description: Fix bug that prevents new Galaxy visitors from viewing an accessible/published workflow. Viewing an accessible/published workflow requires a history because rendering parameters require a history, so a history is now created for visitors that do not already have one. diffstat: templates/workflow/display.mako | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-) diffs (15 lines): diff -r 8bd2ace6c92d -r 182a7947e63a templates/workflow/display.mako --- a/templates/workflow/display.mako Tue Mar 02 10:47:23 2010 -0500 +++ b/templates/workflow/display.mako Tue Mar 02 11:17:05 2010 -0500 @@ -85,6 +85,11 @@ </%def> <%def name="render_item( workflow, steps )"> + <% + # HACK: Rendering workflow steps requires that trans have a history; however, if a user's first visit to Galaxy is here, he won't have a history + # and an error will occur. To prevent this error, make sure user has a history. + trans.get_history( create=True ) + %> <table class="annotated-item"> <tr><th>Step</th><th class="annotation">Description/Notes</th></tr> %for i, step in enumerate( steps ):