Database select with order and .list()

50 views
Skip to first unread message

Tomas Schertel

unread,
Sep 14, 2012, 2:52:55 PM9/14/12
to we...@googlegroups.com
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.

Tomas Schertel

unread,
Sep 14, 2012, 4:45:24 PM9/14/12
to we...@googlegroups.com
After struggling a lot, I did it.
:)

Tomas Schertel

unread,
Sep 18, 2012, 11:23:57 AM9/18/12
to we...@googlegroups.com
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?
Reply all
Reply to author
Forward
0 new messages