>
>
> I think you need something more like:
>
>     if request.args(0) in locals():
>         return locals()[request.args(0)]()
>     return locals()
>
> But I think for security reasons you might also test for request.args(0) in
> ['fun1', 'fun2']. Otherwise you could get some strange results.
>

Thanks, I got it putting () outside the get() method:

return locals().get(request.args(0),locals)()

Reply via email to