From: | Daniele Varrazzo <daniele(dot)varrazzo(at)gmail(dot)com> |
---|---|
To: | Ronan Dunklau <rdunklau(at)gmail(dot)com> |
Cc: | psycopg(at)postgresql(dot)org, Tobias Oberstein <tobias(dot)oberstein(at)gmail(dot)com> |
Subject: | Re: flexi adaption/casting scheme |
Date: | 2012-09-22 01:21:15 |
Message-ID: | CA+mi_8YSEOs0tmwPrqm=B2nUri_Uuamg62KzX0xdoe=ehByBsQ@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | psycopg |
On Fri, Sep 21, 2012 at 5:42 PM, Ronan Dunklau <rdunklau(at)gmail(dot)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
From | Date | Subject | |
---|---|---|---|
Next Message | Tobias Oberstein | 2012-09-22 13:25:17 | Re: flexi adaption/casting scheme |
Previous Message | Tobias Oberstein | 2012-09-21 19:30:40 | Re: flexi adaption/casting scheme |