[google-appengine] Re: Operand error

2009-02-18 Thread djidjadji
What you want is that there is only one TotalDistance object in the datastore. Just as Alexander points out that you have an attribute name that is the same as a method of the class Query. And you must execute the query to get objects. Better code is the following, in your post() method: You must

[google-appengine] Re: Operand error

2009-02-14 Thread Neversummer
Sorry, the put process actually reads: putTotal = TotalDistance( count = tdMod ) On Feb 14, 8:57 am, Neversummer wrigh...@gmail.com wrote: I am new to app engine and pyton and unfortunately am not able to accomplish a seemingly simple task - thanks for your patience. I

[google-appengine] Re: Operand error

2009-02-14 Thread Alexander Kojevnikov
On Feb 15, 3:57 am, Neversummer wrigh...@gmail.com wrote: I am new to app engine and pyton and unfortunately am not able to accomplish a seemingly simple task - thanks for your patience. The problem is in this line: tdCurr = tdResult.count Query.count is a method. Unlike in Ruby, in Python