[sqlalchemy] Re: Dealing with l10n fields

2015-07-12 Thread Lele Gaifax
Mike Bayer writes: > I'm not sure if you're using the ORM, there are some neat new hooks in 1.0 > that could be used for this, but let's assume you're doing pure Core. Yes, that's exactly my use case (btw, that's because I'm using an async approach, similar to Alchimia but based on asyncio rathe

Re: [sqlalchemy] Dealing with l10n fields

2015-07-12 Thread Mike Bayer
On 7/12/15 6:35 AM, Lele Gaifax wrote: Hi all, I'm writing a new application against an existing DB (too bad, it's MySQL :-[) that may contain information in multiple languages. The original author structured the tables like the following: CREATE TABLE products ( ID integer, CODE

[sqlalchemy] Dealing with l10n fields

2015-07-12 Thread Lele Gaifax
Hi all, I'm writing a new application against an existing DB (too bad, it's MySQL :-[) that may contain information in multiple languages. The original author structured the tables like the following: CREATE TABLE products ( ID integer, CODE varchar(20), /* "short" description