Hi there! I'm new to python and app engine, I need some help with this:

*class* Profile (db.Model):
    name = db.StringProperty()
    backup_date = db.DateProperty()

*class* BoxInfo (db.Model):
    source = db.TextProperty()
    index  = db.IntegerProperty()
    profile= db.ReferenceProperty(Profile, collection_name='boxes')


*How can I do this?*
query = model.BoxInfo.all().filter("profile.backup_date =", None)

*I have also tried this way, with no sucess:*
query = db.GqlQuery("select * from BoxInfo where profile in (select * form
Profile where backup_date = :1)", None)

Which gives me:
  BadQueryError: Parse Error: Parameter list requires literal or reference
parameter at symbol select


Thanks

-- 
Rodrigo Lopes

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to