You aren't doing .fetch() on your gqlquery. On 11/30/09, david <[email protected]> wrote: > Hi, I have: > > class Posicion(db.Model): > id = db.StringProperty() > latitud = db.ListProperty(int) > > def post(self): > _id = self.request.get("id") > _latitud = int(self.request.get("latitud")) > query_str = "SELECT * FROM Posicion WHERE id = '" + _id +"'" > posicion = db.GqlQuery (query_str) > > if posicion.count()>0: # if "id" had been appended (if > exists) > posicion[0].latitud.append(_latitud) > posicion[0].put() > self.response.out.write("%s" % str(len(posicion[0].latitud))) # if > always one. > else: # is the first time > pos = Posicion() > pos.id = _id > pos.latitud.append(_latitud) > pos.put() > > My problem is only work the first time, the second time that I call > this function don't append value "_latitud". > > I want the first time create the instance of "Posicion" and the second > time append values of the list. > > What is error? > > Thanks!! > > -- > > 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. > > >
-- Sent from my mobile device -- 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.
