I saw. I just thought there was no way to know the key.

2008/9/24 Gee <[EMAIL PROTECTED]>

>
> Hello!
>
> I was able to solve this by:
>
> 1) figure out the Key of the record by using Key.from_path() and
> GUESSING at the correct ID (acutally iterating) based on the record
> before it and after it (since I could never see that record directly
> because all apis would throw an exception)
> 2) once I had the Key, I had to use
> google.appengine.api.datastore.Delete() to delete it.  (db.delete()
> wont work in this case cuz you need to pass the model to it, but again
> db.get() would just throw an exception as soon as I try to get() that
> record.
>
> the solution was posted in another thread where I asked about how to
> delete specifically.. fyi
>
> On Sep 24, 11:55 am, "Alexander Pugachev"
> <[EMAIL PROTECTED]> wrote:
> > Maybe you could dump all valid models data, remove that model definition
> and
> > update application (at this stage datastore should not keep data for that
> > model), add model definition back, update application, and put back valid
> > data?
> >
> > 2008/9/24 Gee <[EMAIL PROTECTED]>
> >
> >
> >
> > > Hi all,
> >
> > > I somehow managed to put a value < -90 in the datastore for a
> > > GeoPtProperty.
> >
> > > Now every time a query includes that row... I get a BadValueException
> > > that says:
> > > Latitude must be between -90 and 90; received -2955487255461888.000000
> >
> > > Ok fine, I just want to del that record... but I dont have the key id,
> > > and I can seem to get() or fetch() it since that error always occurs.
> > > So I have no object to call delete() on...
> >
> > > Can anyone help me delete this record?  Its on a live site and
> > > clearing the datastore is not an option :-(
> >
> > > thanks for any help!  I have tried everything I can think of!
> >
>

--~--~---------~--~----~------------~-------~--~----~
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-appengine@googlegroups.com
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