GQL how to select by UserProperty

Posted by fmsf on Stack Overflow See other posts from Stack Overflow or by fmsf
Published on 2010-03-26T17:08:34Z Indexed on 2010/03/26 18:33 UTC
Read the original article Hit count: 469

Filed under:
|
|

Hey I have this code but it doesn't work because it is expecting a string. How can I make it work?

class Atable(BaseModel):
    owner = db.UserProperty()
        (...)

--------- // --------------
query = "SELECT * FROM Atable WHERE owner=", users.get_current_user()
results = db.GqlQuery(query)

How can I fix that search? Thanks :)

I've started with the appengine database yesterday so be gentle :)

© Stack Overflow or respective owner

Related posts about python

Related posts about google-app-engine