Re: [sqlalchemy] (newb) approach to localization

2013-09-21 Thread Michael Bayer
On Sep 21, 2013, at 1:27 AM, John Nieri niericent...@gmail.com wrote: 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

Re: [sqlalchemy] (newb) approach to localization

2013-09-21 Thread John Nieri
Interesting. I think I understand. You are saying that I could make my own type that is, according to my original example, basically a dict with language code keys leading to text in that language. Is that right? It seems so strange that there aren't built-in mechanisms for it. By the way, I

Re: [sqlalchemy] (newb) approach to localization

2013-09-21 Thread Jonathan Vanasco
This bit... title = obj.title[en-US] # or something similar that's very close to how PostgreSQL's HSTORE and JSON columns work with sqlalchemy. -- You received this message because you are subscribed to the Google Groups sqlalchemy group. To unsubscribe from this group and stop

[sqlalchemy] (newb) approach to localization

2013-09-20 Thread John Nieri
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.