[sqlalchemy] Re: TypeDecorator Problem with basic association pattern

2010-08-26 Thread Frank
Hi Michael, yes, you're right of course. This overlapped with the other issue you mentioned about the nutrient_weight/weight column name. I didn't realize this at once. When I change the column name or the mapping appropriately I don't need to return None anymore. Thanks again Frank -- You

[sqlalchemy] Re: TypeDecorator Problem with basic association pattern

2010-08-25 Thread Frank
Hello Michael, that worked well, thank you very much for your aid. I'm just having trouble understanding why I need to do the None check. I thought from my example that weight could'nt be None at all ... could you be so kind to elaborate a bit what's happening behind the scene? When I tested the

Re: [sqlalchemy] Re: TypeDecorator Problem with basic association pattern

2010-08-25 Thread Michael Bayer
On Aug 25, 2010, at 9:39 AM, Frank wrote: Hello Michael, that worked well, thank you very much for your aid. I'm just having trouble understanding why I need to do the None check. I thought from my example that weight could'nt be None at all ... could you be so kind to elaborate a bit