[google-appengine] Unsupported operand type(s)

2009-04-08 Thread Mel T.
Hi, I come from another language and framework world, thus I am new to python and gae so please excuse my ignorance. I get this error when I call a method I added to a db.Model derived class: c = Greeting.count + 1 TypeError: unsupported operand type(s) for +=: 'IntegerProperty' and

[google-appengine] unsupported operand type(s) for +=: 'NoneType' and 'int'

2008-10-02 Thread GMan
I am scratching my head at this seemingly simple problem. All I want to do is: 1) Take the value of a db.IntegerProperty 2) increment it using a local variable 3) Save the local variable back to the IntegerProperty class IncrementHolder: counter = db.IntegerProperty() class