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):
C = db.ReferenceProperty(reference_class=C)
class B(db.Model):
C = db.ReferenceProperty(reference_class=C)
a = {some query}
b = B()
# I would like to do the next assignment without retrieving the
relevant entity
# from the data store.
b.C = a.C
Yes, I know that a._C.id() can be used to read the id, but that
doesn't seem to be part of the documented interface.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---