On Fri, Sep 21, 2012 at 5:42 PM, Ronan Dunklau <rdunklau@gmail.com> wrote:
> I would be very happy if it is included in a future release.
I've pushed it into my composite-custom branch. I've mixed our
designs, refactoring CompositeCaster to allow overriding make(), but
adding a factory parameter to register_composite() to register the
subclasses the same way the base class is usually created, without the
from_db/register methods exposed in my previous patch.
An example of usage is in the docs: see
https://github.com/dvarrazzo/psycopg/commit/fa9393b5870f07d6fb3ac55f5d90ffd8e06fe678#L1R208
Thank you and Tobias for the input. Testing and comments are welcome.
-- Daniele