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.
>>>
>>