Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Database select with order and .list()
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  3 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Tomas Schertel  
View profile  
 More options Sep 14 2012, 2:52 pm
From: Tomas Schertel <tscher...@gmail.com>
Date: Fri, 14 Sep 2012 11:52:55 -0700 (PDT)
Local: Fri, Sep 14 2012 2:52 pm
Subject: Database select with order and .list()

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 must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Discussion subject changed to "Database select with order and .list() SOLVED" by Tomas Schertel
Tomas Schertel  
View profile  
 More options Sep 14 2012, 4:45 pm
From: Tomas Schertel <tscher...@gmail.com>
Date: Fri, 14 Sep 2012 13:45:24 -0700 (PDT)
Local: Fri, Sep 14 2012 4:45 pm
Subject: Re: Database select with order and .list() SOLVED

After struggling a lot, I did it.
:)


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Tomas Schertel  
View profile  
 More options Sep 18 2012, 11:23 am
From: Tomas Schertel <tscher...@gmail.com>
Date: Tue, 18 Sep 2012 08:23:57 -0700 (PDT)
Local: Tues, Sep 18 2012 11:23 am
Subject: Re: Database select with order and .list() SOLVED

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?


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »