I think you can have the same without lambda

def ext_info (row):
   return [A(op, _href=URL("edit", args=op_id, user_signature=True)) + " "
for op, op_id in get_extended_info_for_case(row.cases.id)]


On Mon, Apr 15, 2013 at 12:20 PM, D. <[email protected]> wrote:

> I figured it out myself :-)
>
> I just needed an inline-loop in my lambda-function:
>
> ext_info = lambda row: [A(op, _href=URL("edit", args=op_id, user_signature
> =True)) + " "  for op, op_id in get_extended_info_for_case(row.cases.id)]
>
>
>
> I find this very ugly though (lambdas and inline-loops in general) and it
> does not look pythonic. Is there any way to make it prettier?
>
> --
>
> ---
> You received this message because you are subscribed to a topic in the
> Google Groups "web2py-users" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/web2py/o6_wQZ_HBgM/unsubscribe?hl=en.
> To unsubscribe from this group and all its topics, send an email to
> [email protected].
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>



-- 
Jurgis Pralgauskis
tel: 8-616 77613;
Don't worry, be happy and make things better ;)
http://galvosukykla.lt

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to