And someting like that :

db.GqlQuery("SELECT * FROM Pin where
deleteRequested = :delete AND ancestor is :group LIMIT 100",
delete=False,
group=place)

On 1 avr, 16:32, thebrianschott <[email protected]> wrote:
> To avoid archiving deleted instances in the datastore I have added the
> following field  to my data model Pin.
>
> deleteRequested = db.BooleanProperty(default=False)
>
> I use the following code to extract only instances which are not
> deleted. And this seems to work find on my SDK, but not on GAE. Both
> deleted and undeleted instances are being fetched by the GqlQuery. Do
> I need to put single quotes around False?
>
> class Details(webapp.RequestHandler):
>     def get(self):
>         action = self.request.get("Action", "read")
>         place_id = self.request.get("place")
>         key = db.Key.from_path("Group", place_id)
>         place = Group.get(key)
>
>         if action == "read":
>             pins = db.GqlQuery("SELECT * FROM Pin where
> deleteRequested = False AND ancestor is :group LIMIT 100",
> group=place)
>
> Brian in Atlanta
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to