Hello list,
I got an Internal error and the problem is in a views file.
And as we know row numbers in the source files is not the same as in the
Error page. So I started looking at the error on the Error page and I
think I found a bug in showing the code.
File"/views/troop/campaign.html",line436,in<module>
TypeError:unsupported operand type(s)for-:'NoneType'and'long'
So I scrolled down to line number 436
436 if tracker_rows[person_id].has_key(product.id):
and I can't understand whats wrong.
So I scrolled back up to check the row number and then by mistake I
looked at the short version that only shows 20 rows. In that listing row
numer 436 is:
to_be_returned[product.id] =
tracker_rows[person_id][product.id].count_received -
tracker_rows[person_id][product.id].count_paid -
tracker_rows[person_id][product.id].count_returned
makes much more sense.
Kenneth