Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Jun 17th, 2012  |  syntax: None  |  size: 0.33 KB  |  hits: 17  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. help with datastore query
  2. **playlist**
  3. songs = db.ListProperty(db.Key)
  4.  
  5. **Song**
  6. artist = db.ReferenceProperty(Artist,collection_name='songs')
  7.  
  8. **Artist**
  9. Key Name = john-lennon
  10.        
  11. songs = GqlQuery('SELECT __key__ FROM song WHERE artist = :1', 'john-lennon')
  12. playlists = GqlQuery('SELECT * FROM playlist WHERE songs IN :1', songs)