Re: [sqlalchemy] Validate attributes mapped to Integer columns as Python integers on all classes

2015-05-14 Thread Bruno Grande
I got it working. The second example was really helpful. Thanks, Mike! Best regards, Bruno On Wed, May 13, 2015 at 3:15 PM, Mike Bayer mike...@zzzcomputing.com wrote: On 5/13/15 5:33 PM, Bruno Grande wrote: I was looking for a way of typecasting attributes that are mapped to Integer

[sqlalchemy] Validate attributes mapped to Integer columns as Python integers on all classes

2015-05-13 Thread Bruno Grande
I was looking for a way of typecasting attributes that are mapped to Integer columns as Python integers without having to commit to the database first. On the IRC channel, I was pointed towards simple validators and the @validates decorator. While this works, implementing validation using this