Yes this is strange.. but i want (if is possible) to implement in select process, a condition that is evaluated as a result of classmethod.
In my case i must select all person from my database that are inside a geografical circle with coordinate = x,y... and radius = z. i must use a callable (wich is called for each item) because the inside or outside is calculated for each item. i cannot iterate over result of the qry, because after this particular condition i must add more other filter condition . My workflow data is something like my_base_qry = select ..... if condition1: my_base_qry = my_base_qry.filter( ...) if coordinate: my_base_qry = my_base_qry.filter( my_method_inside_circle ( latitude, longitude,radius) ) if condition3: my_base_qry = my_base_qry.filter( ...) ---- if condition_n: my_base_qry = my_base_qry.filter( ...) sorry for my poor english any idea? Glauco -- +------------------------------------------------------------+ Glauco Uri - Programmatore glauco(at)allevatori.com Sfera Carta Software(r) [EMAIL PROTECTED] Via Bazzanese,69 Casalecchio di Reno(BO) - Tel. 051591054 +------------------------------------------------------------+ --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---