Hi Neal,

.key is a method, not a property, so you need to get mytable.key().
Additionally, .put() returns the key or keys that were stored. The error
you're getting would tend to indicate you're getting namespace collision
from something else, though.

-Nick Johnson

On Thu, Jun 4, 2009 at 3:03 PM, NealWalters <[email protected]>wrote:

>
>
> Is it possible to get the key immediately after the put, something
> like this?
>
>     mytable.put()
>     savekey = mytable.key
>     self.response.out.write(savekey)
>     return
>
> The above shows this result, which clearly doesn't look a key in the
> database:
> <__main__.Session object at 0x0D126FF0>>
>
> Or do I need to call a uuid and set the key myself if I need to keep
> it for further use?
>
> Thanks,
> Neal Walters
>
>
> >
>

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