try q=db.GqlQuery("SELECT * from User where create_date < :1",
earliest_date)  (The difference is that the second argument is a
variable name, not a string.)

You also need to give the variable named "earliest_date" a value in
your code.


On Apr 1, 6:44 am, Racz <[email protected]> wrote:
> i found this
>
> "
> q=db.GqlQuery("SELECT * from User where create_date < :1",
> "earliest_date")
> results = q.fetch(10)
> db.delete(results)
>
> "
> source :http://code.google.com/appengine/docs/python/datastore/
> creatinggettinganddeletingdata.html#Deleting_an_Entity
>
> but it gives me this error:
>
> "NameError: global name 'earliest_date' is not defined"
>
> can anybody give me a clue
--~--~---------~--~----~------------~-------~--~----~
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