I've added the solution to the Cookbook and the FAQ:
http://appengine-cookbook.appspot.com/recipe/getting-dbreferenceproperty-key-without-loading-entity

On a previous thread, someone came up with a metaclass solution as
well.
-Bill

On Nov 13, 10:01 am, "Chris Marasti-Georg" <[EMAIL PROTECTED]>
wrote:
> Wooble, that's incorrect.  The solution is 
> here:http://stackoverflow.com/questions/141973/how-do-i-get-the-key-value-...
>
> On Thu, Nov 13, 2008 at 11:04 AM, Wooble <[EMAIL PROTECTED]> wrote:
>
> > How would that be more efficient?  The entity isn't fetched until you
> > try to use it as an instance anyway.
>
> > On Nov 13, 10:42 am, tigrillo <[EMAIL PROTECTED]>
> > wrote:
> > > For the sake of efficient, it will be nice if ReferenceProperty let's
> > > us return the Key optionally instead of the Entity.
>
> > > Thanks
--~--~---------~--~----~------------~-------~--~----~
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