← Back to team overview

launchpad-dev team mailing list archive

Re: Generic Colletion?

 

On 2010-08-03 00:40, Jamu Kakar wrote:

I'm not convinced that "override select to take ids list into
account somehow" is a great idea.

True. Frankly I haven't had a need yet to build custom query methods in concrete collections on our base; maybe that's where the customization should be.


> I think it'll lead to mixture of
models: you'll have a list of expressions, sometimes, with special
cases, sometimes, and then some glue to put it all back together.  I

Perhaps we shouldn't expose `select` and `refine` to anything outside the concrete collection, so that the caller doesn't get the flexibility but the implementation remains encapsulated and open to change.


Jeroen



Follow ups

References