3 questions:
1. is it possible to filter an property inside the Entity property?
For example:
Article(author = users.get_current_user(), skey='monmon').save()
Invite(author = users.get_current_user(), entry = Article.get('monmon')).save()
##here is the filter
invites = Invite.all().filter('entry.author =', user.get_current_user())
2. Is it possible to pass some thing like 'or' to filter ?
Some thing like this:
articles = Article.all().filter('author =',
user.get_current_user()).or('user =', user.get_current_user())
3. (not a query question). Some one know if GAE offers some kind of
facility to an invite/collaboration system ?
I need to invite google users to edit or comment on my system.
Thanks
Cheers
--
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-a...@googlegroups.com.
To unsubscribe from this group, send email to google-appengi...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
Robert
Ok, Thanks.
I just find one way to 'join' the results:
entries = list(chain(Article.all().filter('public =',
False).filter('status =', True).filter('author =', user),
Article.all().filter('public =', True)))
trying:
entries = Article.all().filter('public =', False).filter('status =',
True).filter('author =', user)
entries += Article.all().filter('public =', True)
don't work.
There is a better way to join the results ?