Thursday, November 11, 2010

GAE Error when displaying datastore entity key

Error
TypeError: write() argument 1 must be string or read-only character buffer, not Key

Reason
I was trying to display key for an entity. Python/ Java API returns keys as an instance of the entity class. Convert it to string to pass it or to display.

No comments: