[sqlalchemy] Re: UserDefinedType for tuples

2011-02-04 Thread Enrico
The most similar example to what I want to do, I think is here: http://groups.google.com/group/sqlalchemy/browse_thread/thread/81cc56d5ed693a48/58a3caa40a7daa39?lnk=gstq=TypeDecorator#58a3caa40a7daa39 where Frank is storing nutrient weights in a new type. After (re)reading the doco about custom

[sqlalchemy] Re: UserDefinedType for tuples

2011-01-27 Thread Enrico
Hi Folks, I was hoping to still be able to get guidance on creating my UserDefinedType. If I just knew exactly what the purpose of the bind and result processes were supposed to be, I'm sure I could look it up from there. -- You received this message because you are subscribed to the Google

Re: [sqlalchemy] Re: UserDefinedType for tuples

2011-01-27 Thread Michael Bayer
Assuming you're using types that are provided by the database (i.e. VARCHAR, ARRAY, INTEGER, etc.), you use a TypeDecorator to add some kind of in-Python marshalling behavior to some Python type. On Jan 28, 2011, at 12:14 AM, Enrico wrote: Hi Folks, I was hoping to still be able to get