Hi Lou, Are you sure that there is a Venue entity to get with your query? Without seeing the exception this is a bit difficult to debug, but it could be that venue_obj is being set to None since GqlQuery.get() didn't find anything.
Thank you, Jeff On Apr 4, 10:14 pm, Lou <lssay...@gmail.com> wrote: > Hi, > > I'm a bit stuck with trying to set a property.... for some reason it's > not working, and I can't figure it out. > > My model is as follows: > > class Venue(db.Model): > intro_text = db.StringProperty() > images = db.ListProperty(db.Blob) > > The problem is in a helper method that I have, where I've taken the > input from a POST and trying to set the value in the intro_text > property of the Venue model. > > Unfortunately, I'm using django 1.02 with app engine and I can't see > what the exception is that's being thrown. I've narrowed it down to > the following (last two lines of code) though: > > def setVenueIntroText(text): > venue_obj = db.GqlQuery("SELECT * FROM Venue").get() > venue_obj.intro_text = text > db.put(venue_obj) --~--~---------~--~----~------------~-------~--~----~ 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-appengine@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 -~----------~----~----~----~------~----~------~--~---