Charles Duffy wrote: > When building a mapper manually, one can control ordering per > http://sqlalchemy.org/docs/adv_datamapping.myt#advdatamapping_orderby; > I don't see a mechanism (in either code or documentation) for doing > the same via ActiveMapper. Are there any plans for adding similar > support to ActiveMapper for specifying this on a per-relation or > per-mapper basis?
This would be a great addition to ActiveMapper, and I have definitely thought about putting this into the code, but have not yet had the time to make this happen. Contributions are, of course, welcome ;) > Alternately, has there been thought given to providing a mechanism by > which arbitrary keyword arguments for creation of relations or mappers > could be passed through to the underlying code via ActiveMapper? I am not sure this will work right now. Currently, ActiveMapper is using `assign_mapper` to create and attach mappers to classes, and in order to support ordering either in an explicit way or by being able to pass arbitrary keyword arguments, we would have to change this. The best way to do this would be to use the code in the `assign_mapper` function as a starting point, and create an ActiveMapper-specific version of the function that will support the more advanced datamapping features like ordering. This wouldn't be all that difficult, and would be a *huge* improvement to ActiveMapper. If you need any help with this, let me know! I would be happy to review and commit any patches that you might come up with to make this happen. -- Jonathan LaCour http://cleverdevil.org _______________________________________________ Sqlalchemy-users mailing list Sqlalchemy-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/sqlalchemy-users