[sqlalchemy] Re: Full-fledged objects as mapped attributes?

2011-07-01 Thread Jason Denning
unction with a TypeDecorator, so that the data is > coerced both at the database level, as well as at the attribute setter level > - this is > athttp://www.sqlalchemy.org/trac/wiki/UsageRecipes/ValidateAllOccurrenc > > On Jun 29, 2011, at 9:40 PM, Jason Denning wrote: >

[sqlalchemy] Full-fledged objects as mapped attributes?

2011-06-29 Thread Jason Denning
Hi All, I am building a Pyramid app using SQLAlchemy for the model, and I would like to be able to use the attributes as full-fledged objects (i.e., I would like to be able to define methods attached to the attributes), ideal example usage (although this is a somewhat contrived example): class Pho