[sqlalchemy] Re: Add helper methods to a model class

2011-06-26 Thread Arthur Kopatsy
Thanks Michael. However, I also want my queries to return objects with the helpers. The rebasing method does achieve this but I am not sure how the method you are describing will. Using mixin is interesting but it will force my applications to map them and therefore know about the table layout.

Re: [sqlalchemy] Re: Add helper methods to a model class

2011-06-26 Thread Michael Bayer
On Jun 26, 2011, at 2:51 PM, Arthur Kopatsy wrote: Thanks Michael. However, I also want my queries to return objects with the helpers. The rebasing method does achieve this but I am not sure how the method you are describing will. It absolutely does because the class you define with Base