Perhaps if your db operation is driven by a form the user refreshed their
browser. If they did then the form would post the request again. The
solution is to redirect after a post to clear out the headers.

On Wed, May 19, 2010 at 6:53 AM, Dennis <[email protected]> wrote:

> I have used the code below to insert an entity (yes , supposed to be
> only one entity inserted per request). However, it has inserted two
> entities per request.
>
> Do you encounter this problem ?
>
> Thanks.
> =============
>
> #coding=utf-8
> from google.appengine.ext import db
>
> class Order(db.Model):
>    time = db.DateTimeProperty(auto_now_add=True)
>    stri = db.StringProperty()
>
> obj1 = Order(stri='test')
> obj1.put()
>
> --
> 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]<google-appengine%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/google-appengine?hl=en.
>
>


-- 
--
Jeff

-- 
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