somethings' missing here.. whats the link classmethod - select - etc?
do explain again/more...
u mean the classmethod generates the filter-expression?
whats the difference classmethod vs plainmethod here?
all the same, just call it: self.myclassmethod(..)

On Monday 10 September 2007 14:40:57 Glauco wrote:
> 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



--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to