Can't reproduce it, otherwise I would post all the applicable code.  

Sorry.

On Monday, May 21, 2012 4:13:14 PM UTC-4, Massimo Di Pierro wrote:
>
> I'd like to get to bottom  of this in case it is a bug.... Something cases 
>
> {{=my_select}} to display my_select.__repr__() instead of 
> my_select.__str__() as it should. I do not see in your code where that is 
> happening.
>
>
>
> On Monday, 21 May 2012 15:03:18 UTC-5, Cliff wrote:
>>
>> Thank you Massimo.  Using the syntax you suggested fixed it.
>>
>> Odd, though, because grep for XML didn't yield anything in the 
>> controller, model or view even remotely related to the select I was trying 
>> to make.
>>
>>
>>
>>
>> On Monday, May 21, 2012 1:40:22 PM UTC-4, Massimo Di Pierro wrote:
>>>
>>> This cannot be the complete code. Somewhere you have an unwanted 
>>> XML(...).
>>> Anyway, you can simplify this a lot:
>>>
>>> {{=SELECT(*[r.somefield for r in rows])}}
>>>
>>> On Monday, 21 May 2012 10:38:33 UTC-5, Cliff wrote:
>>>>
>>>> Typo.  Should be mk_select():
>>>>
>>>> As you can see, I don't seem to functioning well this AM.
>>>>
>>>>
>>>>
>>>> On Monday, May 21, 2012 11:16:24 AM UTC-4, Massimo Di Pierro wrote:
>>>>>
>>>>> What's get_select()?
>>>>>
>>>>> On Monday, 21 May 2012 10:06:42 UTC-5, Cliff wrote:
>>>>>>
>>>>>> I cannot see what I'm doing wrong.
>>>>>> p
>>>>>> In the controller, I have functions like this:
>>>>>>
>>>>>> def mk_select(rows):
>>>>>>   out = SELECT()
>>>>>>   for row in rows:
>>>>>>     out.append(row.somefield)
>>>>>>   return out
>>>>>>
>>>>>> def edit():
>>>>>>   rows = get_rows()
>>>>>>   return dict(my_select=get_select(rows))
>>>>>>
>>>>>> Then in the view, I do:
>>>>>> {{=my_select}}
>>>>>>
>>>>>> But the browser shows:
>>>>>> (<gluon.html.SELECT object at 0x7fedc43b3d90>,) 
>>>>>>
>>>>>> Surely this is not rocket science, but I cannot see the problem.  All 
>>>>>> help gratefully accepted.
>>>>>>
>>>>>

Reply via email to