Sorry, It's my bad. AJAX callback problem.
Thanks anyway. Best Regards Tom Wu 2009/12/23 Robert Kluin <[email protected]> > 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 <[email protected]> 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 [email protected]. > > To unsubscribe from this group, send email to > > [email protected]<google-appengine%[email protected]> > . > > 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 [email protected]. > To unsubscribe from this group, send email to > [email protected]<google-appengine%[email protected]> > . > 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 [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.
