Thank you yejun.
2008/11/2 yejun <[EMAIL PROTECTED]>
>
> You can't query on reference's property.
>
> On Nov 1, 11:31 pm, "Rodrigo Lopes" <[EMAIL PROTECTED]> wrote:
> > 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
> >
>
--
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 [email protected]
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
-~----------~----~----~----~------~----~------~--~---