i'm having a hard time changing the default _get_for_dict() Method.
This is what my code looks at the moment:
def _get_for_dict(self, entity):
value = super(ImageProperty, self)._get_for_dict(entity)
I haven't tried this, but I think that this would be better as a
class ImageProperty(ndb.BlobKeyProperty): def _from_base_type(self, value): return images.get_serving_url(value)
If I understand the documentation correctly, this API "stacks" so you don't need to call the
_from_base_type on the super class (
BlobKeyProperty). I guess
ndb handles that for you. Personally, I think this is a bit weird for an API when
super seems like it would work just fine ... But ... that's how it is I guess.