On Tue, Aug 14, 2012 at 10:14 AM, Annet <[email protected]> wrote:
>
> In a controller I start the index function with the following code:
>
> if not len(request.args):
>         redirect(URL('addressbook','router'))
>     elif not session[request.args(0)]:
>         redirect(URL('addressbook','router',request.args(0)))
>     elif not session[request.args(0)].accountid==ADVANCEDACCOUNTID:
>         redirect(URL('addressbook','router',request.args(0)))
>     else:
>         ....
>
>
Try this instead:

URL('adresbook', 'router', args=request.args(0)


Marin

-- 



Reply via email to