Hey there.
How can I use db.query using "order by" and offset as variables?
Maybe using "vars" as select uses?
Can someone give me an example?
On Friday, 14 September 2012 17:45:24 UTC-3, Tomas Schertel wrote:
>
> After struggling a lot, I did it.
> :)
>
> On Friday, 14 September 2012 15:52:55 UTC-3, Tomas Schertel wrote:
>>
>> Hi there.
>>
>> I have a select like this:
>>
>> user_list = db.select('users',
>> what='id, name',
>> order=order_by).list()
>>
>> Where order_by is a variable.
>> Happens that I receive this error: AttributeError: 'list' object has no
>> attribute 'find'
>>
>> How can I solve this?
>>
>> Thanks.
>>
>
--
You received this message because you are subscribed to the Google Groups
"web.py" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/webpy/-/a1YJ8oaUIMkJ.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/webpy?hl=en.