I am thinking that for security reasons it may be better to leave the book 
un-changed and make it work as described by doing the parsing properly and 
safely.

On Wednesday, 17 July 2013 08:24:58 UTC-5, dhmorgan wrote:
>
> Thank you both for helping me out here.
>
> Changing the lambda, as indicated in the pending book correction, works.
>
>
> in controller:
>
>     def index(): 
>         return auth.wiki(env=dict(join=lambda a:"-".join(a.split(","))))
>
>
> in wiki page body:    
>
>     @{join:'this',that','the other'}
>
>     @{join:how,you,doin'} 
>
> result:
>
>     'this'-'that'-'the other'
>
>     how-you-doin'
>
>
> Danny
>
>
>
> On Wednesday, July 17, 2013 7:16:03 AM UTC-5, Alan Etkin wrote:
>>
>> I have a possible correction here
>>
>> https://github.com/mdipierro/web2py-book/pull/86
>>
>

-- 

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