Valid:
    next=URL(f=show, args=[id])

    next=URL(f=show, args=(id,))

    next=URL(f=show, args=id)

But this

    next=URL(f=show, args=([id])))

is interpreted as

    next=URL(f=show, args='[id]')

and therefore escaped




On Jan 30, 12:05 pm, Art Zemon <[email protected]> wrote:
> I'm tangled up in the syntax for crud.create. I have written
>
>     form = crud.create(db.assets, message=T('Asset Created'),
>     next=URL(f=show, args=([id])))
>
> But the URL being generated is
>
>     .../show/%3Cbuilt-in%20function%20id%3E
>
> How should I write this? Or do I need to drop back to using a SQLFORM?
>
> Thanks,
>      -- Art Z.
>
> --
>
> Art Zemon, President
> Hen's Teeth Network <http://www.hens-teeth.net/>
> The source of reliable, secure e-commerce web hosting
> <http://www.hens-teeth.net/html/hosting/ecommerce_hosting.php>
> Phone: (866)HENS-NET or (636)447-3030 ext. 200

Reply via email to