before mappers are compiled, you pull out "comparator_factory" from your relation(), and set it to be some class of your own which subclasses PropComparator and implements __le__()/__gt__() . It wouldn't be hard to add "comparator_factory" as a keyword argument to relation() either.
On Jul 10, 2008, at 3:02 PM, [EMAIL PROTECTED] wrote: > > hi > i got that the only allowed non-relational expressions over a > reference (PropLoader) are: > someklas.propname == instance > and that would be translated into > someklas.table.c.primarykey == instance.primarykey > > is there a way to apply same thing for <=/>= i.e. le/ge? (without > resorting to column-level) > somehow add le/ge to PropLoader.Comparator? > > its about some sort-of audit-log, which dbid is used as a > revision-number for the referring classes. > i.e. i want to get objects with revisions before someRevisionInstance, > comparing Revision.db_id. > > ciao > svilen > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "sqlalchemy" group. To post to this group, send email to sqlalchemy@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sqlalchemy?hl=en -~----------~----~----~----~------~----~------~--~---