Getting a "ReferenceProperty failed to be resolved" error and I can
swear up and down that the ReferenceProperty *should* be able to be
resolved -- i.e., this is not your classic case of referenced entities
being deleted, as the data is all there.
Model definition (abridged):
class ChatWordStats
Hi All,
# models.py
from google.appengine.ext import db
class parent(db.Model):
t = db.StringProperty(required=True, default=None)
class child(db.Model):
ref_parent = db.ReferenceProperty(parent, required=True, default=None,
collection_name="ref_child")
#view.py
from models import chi
I think you just need to catch that exception and handle it "nicely."
If I recall in their docs it mentions that if the referenced entity is
missing you will get an exception.
Robert
On Tue, Dec 22, 2009 at 9:57 PM, Tom Wu wrote:
> Hi All,
>
> # models.py
> from google.appengine.ext
Sorry, It's my bad.
AJAX callback problem.
Thanks anyway.
Best Regards
Tom Wu
2009/12/23 Robert Kluin
> I think you just need to catch that exception and handle it "nicely."
> If I recall in their docs it mentions that if the referenced entity is
> missing you will get an exception.
>
>
>