> From: isaac tetteh <itette...@hotmail.com>
> Date: April 19, 2016 at 9:05:04 PM CDT
> To: Danny Yoo <d...@hashcollision.org>
> Subject: Re: [Tutor] List of tuples
> 
> Thanks things are working good now. The only problem is i want to print the 
> for loop output on one line instead of on each line.
> Example [1,2,3,4,5]
> Output 
> 1 2 3 4 5 
> I would to do this in Jinja 
> 
> Sent from my iPhone
> 
>> On Apr 19, 2016, at 8:35 PM, Danny Yoo <d...@hashcollision.org> wrote:
>> 
>> Okay, in the context of a function, the error you're seeing makes more sense.
>> 
>> You need to ensure that the return value of the function is of the right 
>> type.  In  SingleView, the intended return value appears to be a structured 
>> response value.  
>> 
>> Given that, then any other return statements in the body of the function are 
>> suspect: return is a statement that will finish a function.
>> 
>> If a function returns a value of a tour that it isn't supposed to, expect 
>> that to produce very strange error messages.  That's essentially what you're 
>> seeing.
>> 
>> Looking at the construction of the response at the end:
>> 
>> >     return render_template("view.html",data=data,formB=formB)
>> >
>> 
>> I'm wondering: perhaps you can collect the extracted column and add it as an 
>> additional value in you're template?
>> 
>> If you have questions, please feel free to ask.
_______________________________________________
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor

Reply via email to