1. Jesper Nøhr
  2. django-piston
Issue #96 new

Enhance/refactor Emitter to support custom object serializers.

Ionel Cristian Mărieș
created an issue

Right now the serialising function (_any) is defined in a closure and can't be overridden in a Emitter subclass.

Ideally the Emitter would have hooks to support custom objects.

There is the emitable property/callable check for items but I find that is not flexible enough - one would have to wrap every item in the resultset which isn't ideal.

Comments (0)

  1. Log in to comment