Re: [sqlalchemy] Re: Better Implementation of Query Mixin?

2019-03-24 Thread Andrew Martin
I just wanted to give you a shout-out. Your comment really made something click for me. What I was doing in my first post sort of gets me a few steps towards what I'm trying to do. (Side note, I'm not really building a specific app at the moment. I'm building a fairly opinionated framework for

Re: [sqlalchemy] Re: Better Implementation of Query Mixin?

2019-03-23 Thread Andrew Martin
Yeah, I'm kind of rethinking my approach here. Appreciate the thoughts. On Saturday, March 23, 2019 at 1:55:34 PM UTC-5, Mike Bayer wrote: > > Just FTR i was thinking about this Q today and I usually would opt to > make a Service object stateless, and things like "request" and User > would be pa

Re: [sqlalchemy] Re: Better Implementation of Query Mixin?

2019-03-23 Thread Mike Bayer
Just FTR i was thinking about this Q today and I usually would opt to make a Service object stateless, and things like "request" and User would be passed into individual methods explicitly. I usually start application with a pattern that might be more verbose to start with, but once you write hal

[sqlalchemy] Re: Better Implementation of Query Mixin?

2019-03-23 Thread Andrew Martin
I just realized that almost everything about how I'm using mixins here is pretty much wrong. This is probably a garbage question and can be deleted, but I don't want to do it myself in case someone is writing a response to tell me that. On Saturday, March 23, 2019 at 9:00:49 AM UTC-5, Andrew Ma