Datastore property names don't have to be valid Python identifiers.
When there is no space in the filter def, equality is assumed. I do
agree that this is an easy mistake to make. But, I know I've got lots
of filters in my code that omit the operator for brevity. And who
knows, someone probably also has an "=" in a property name.
Robert
> --
> 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.
>
>
Google knows. They could map over all properties in the datastore
checking for names which end in '='. I would be surprised if it's not
0.
You have more faith than I do. :)
Sometimes happens to me in the form of typo. I've adopted this form:
ipads = Item.all().filter('name', 'ipad').count()
It's documented.
--
Branko Vukelić
bra...@herdhound.com
Lead Developer
Herd Hound (tm) - Travel that doesn't bite
www.herdhound.com