The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
From: Rafe <slobberch...@gmail.com>
Date: Thu, 2 Oct 2008 15:02:01 -0700 (PDT)
Local: Thurs, Oct 2 2008 6:02 pm
Subject: Re: ReferenceProperty - id access without fetching the entity
Mazia is correct, there is no guarantee that this will work. In
fact, it is very likely it will not work in the future. We may in the future implement lazy loading so that you can access the key directly without loading the entity (a.C.key()) however, for now, this is guaranteed to work: A.C.get_value_for_datastore(a).key()
On Sep 29, 6:23 pm, Andy Freeman <ana...@earthlink.net> wrote:
> Is there an approved way to copy a ReferenceProperty from one entity
> to another without fetching the referred to entity from the datastore? > In other words,
> class C(db.Model):
> class A(db.Model):
> class B(db.Model):
> a = {some query}
> Yes, I know that a._C.id() can be used to read the id, but that
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
| ||||||||||||||