On Feb 18, 4:03 pm, VP <vtp2...@gmail.com> wrote:
> This is an interesting idea.   I am wondering if by doing this, we
> can:
>
> + treat controllers as regular Python functions, which have
> parameters.
> + implement some type of automatic type checking on request.args (e.g.
> for int or string)

these two would break backward compatibility

> + simplify redirect.   For example, instead of redirect(URL('edit',
> args=id)), simply call edit(id)

you can do

def edit(id): redirect(URL('edit',args=id))

notice that URL('func') and URL(func) both work if fund is a function
in the controller.

>
> ???

Reply via email to