Re: flexi adaption/casting scheme

Поиск
Список
Период
Сортировка
От Daniele Varrazzo
Тема Re: flexi adaption/casting scheme
Дата
Msg-id CA+mi_8YSEOs0tmwPrqm=B2nUri_Uuamg62KzX0xdoe=ehByBsQ@mail.gmail.com
обсуждение исходный текст
Ответ на Re: flexi adaption/casting scheme  (Ronan Dunklau <rdunklau@gmail.com>)
Ответы Re: flexi adaption/casting scheme  (Tobias Oberstein <tobias.oberstein@gmail.com>)
Список psycopg
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


В списке psycopg по дате отправления:

Предыдущее
От: Tobias Oberstein
Дата:
Сообщение: Re: flexi adaption/casting scheme
Следующее
От: Tobias Oberstein
Дата:
Сообщение: Re: flexi adaption/casting scheme