I downloaded the new 1.96 release today to try out. I spotted one
small bug in generic.html - the toolbar is not shown if there is only
one variable sent to the template. For example, given this controller:

def test():
    return dict(foo=1, bar=2)

the toolbar shows up, but in:

def test():
    return dict(foo=1)

the toolbar does not show up.

Simple fix in generic.html: one of the {{pass}} statements is placed
incorrectly. Change from this:


{{if len(response._vars)==1:}}
{{=response._vars.values()[0]}}
{{elif len(response._vars)>1:}}
{{=BEAUTIFY(response._vars)}}
{{if request.is_local:}}
{{=response.toolbar()}}
{{pass}}
{{pass}}


to this:


{{if len(response._vars)==1:}}
{{=response._vars.values()[0]}}
{{elif len(response._vars)>1:}}
{{=BEAUTIFY(response._vars)}}
{{pass}}
{{if request.is_local:}}
{{=response.toolbar()}}
{{pass}}

Cheers,
Kevin

Reply via email to