Am i doing something crazy or should i report this as a bug?
On Jan 9, 6:45 pm, Paul <[email protected]> wrote: > I have a GQL query that works fine when theres only one Merchant > Entity, but fails as below when theres more than 1, any ideas? > > merchantList= [e.key() for e in Merchant.all().fetch(10)] > > Item.gql('WHERE style = :style and merchant in :merchants ORDER BY > __key__',style=theStyle,merchants=merchantList) > > 846. entities = query.fetch(numItems) > File "/home/paul/projects/outfitsis/.google_appengine/google/appengine/ > ext/db/__init__.py" in fetch > 1377. raw = self._get_query().Get(limit, offset) > File "/home/paul/projects/outfitsis/.google_appengine/google/appengine/ > ext/db/__init__.py" in _get_query > 1659. return self._proto_query.Bind(self._args, self._kwds) > File "/home/paul/projects/outfitsis/.google_appengine/google/appengine/ > ext/gql/__init__.py" in Bind > 256. query.update(enumerated_query) > File "/home/paul/projects/outfitsis/.google_appengine/google/appengine/ > api/datastore.py" in update > 1036. self.__setitem__(filter, value) > File "/home/paul/projects/outfitsis/.google_appengine/google/appengine/ > api/datastore.py" in __setitem__ > 979. datastore_types.ValidateProperty(' ', value, > read_only=True) > File "/home/paul/projects/outfitsis/.google_appengine/google/appengine/ > api/datastore_types.py" in ValidateProperty > 1066. 'Unsupported type for property %s: %s' % (name, > v.__class__)) > > Exception Type: BadValueError at /design/ > Exception Value: Unsupported type for property : <class > 'food.models.Merchant'> > > Running appengine_1.1.7 --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
