py4web URL helper documentation missing?

25 views
Skip to first unread message

RHC

unread,
Feb 23, 2020, 3:37:08 PM2/23/20
to web2py-users
HI,

Looking at the py4web documentation at http://py4web.com/_documentation/static/index.html#chapter-08 I see the following where I expected to find details of the URL helper.

URL

The URL helper is documented in [[Chapter 4 URL ../04#URL]]


I go to Chapter 4: http://py4web.com/_documentation/static/index.html#chapter-04


but the documentation isn't in there either. I needed to look it up as args is reported to be an unexpected keyword (web2py used args judging by some of my old code, but py4web uses vars instead it seems by looking at the py4web source code).


Regards,


Richard.

Val K

unread,
Feb 23, 2020, 6:28:32 PM2/23/20
to web2py-users
Yes, there is no keyword argument `args`, you can just:
args = [...]
URL('foo_controller', *args, vars = dict(...) )
Reply all
Reply to author
Forward
0 new messages