edit: URL('addressbook', 'router', args=request.args(0))

On Tue, Aug 14, 2012 at 10:34 AM, Marin Pranjić <marin.pran...@gmail.com>wrote:

>
>
> On Tue, Aug 14, 2012 at 10:14 AM, Annet <anneve...@googlemail.com> 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