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 <service.g2...@gmail.com> wrote: > 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 child > > entity = child.get(key) > return entity.ref_parent.t > > > > It got the Error: ReferenceProperty failed to be resolved when I excute the > view.py. > > Is anything wrong with my script ? Thanks in advanced ! > > > Best Regards > Tom Wu > > > > > > > > > > > -- > > You received this message because you are subscribed to the Google Groups > "Google App Engine" group. > To post to this group, send email to google-appeng...@googlegroups.com. > To unsubscribe from this group, send email to > google-appengine+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/google-appengine?hl=en. > -- You received this message because you are subscribed to the Google Groups "Google App Engine" group. To post to this group, send email to google-appeng...@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.