Hello, I've searched on this topic but haven't found anything approaching
authoritative. I'm also new to DBs and SQLAlchemy although not new to
python.
I'd like to know if there is some mechanism in SQLAlchemy for the common
case of having translated / localized content for a given column.
What I would like to do is something like this:
title = Column(LocalizedString) # or title = LocalizedColumn(String)
# ...
title = obj.title["en-US"] # or something similar
I started making my own implementation but I worry that a) it has been done
before a thousand times b) whatever I come up with won't work with the
underlying magic of SQLAlchemy. I like the approach of atomic
translations<http://rwec.co.uk/blog/2009/11/atomic-translations-part-1/> but
I haven't found implementations of it.
If anyone could point me in the right direction or just tell me that such a
thing doesn't exist, I would appreciate it.
- John
--
You received this message because you are subscribed to the Google Groups
"sqlalchemy" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sqlalchemy.
For more options, visit https://groups.google.com/groups/opt_out.