[sqlalchemy] How to map to read only descriptor

2010-06-11 Thread jpeck
I am trying to map to a simple read only property. According to the docs, I *think* I am supposed to use synonym. The problem is that I am getting a None value for the mapped descriptor's column. For example: import datetime from sqlalchemy import Column, Table, Integer, String, MetaData,

Re: [sqlalchemy] How to map to read only descriptor

2010-06-11 Thread Jeff Peck
On Fri, Jun 11, 2010 at 4:16 AM, jpeck peck.j...@gmail.com wrote: I am trying to map to a simple read only property. According to the docs, I *think* I am supposed to use synonym. The problem is that I am getting a None value for the mapped descriptor's column. Ok, so I got this working with

Re: [sqlalchemy] How to map to read only descriptor

2010-06-11 Thread Michael Bayer
On Jun 11, 2010, at 5:16 AM, jpeck wrote: I am trying to map to a simple read only property. According to the docs, I *think* I am supposed to use synonym. The problem is that I am getting a None value for the mapped descriptor's column. For example: import datetime from sqlalchemy