You are right, the text just above the given code sample
if not request.function=='first' and not session.visitor_name:
redirect(URL('first'))
was changed for the 3ed and it is wrong, it should read:
"... (outside the second function)."
instead of:
"... (inside the second function)."
Good c
Hi Denes,
Thanks a lot for the clarification.
That said, the >not request.function=='first'< part of the if
statement seems therefore useless, since this code is run only when
requesting the 'second' function.
Andre
On 19 août, 12:55, DenesL wrote:
> Hi Andre,
>
> request.function has the name
Hi Andre,
request.function has the name of the function called
i.e. the function part in
http://ipadr:port/app/controller/function
If request.function is always 'second' it means you are always calling
http://yourserverip:port/yourapp/default/second
Hope this helps,
Denes
On Aug 19, 2:33 am, de
3 matches
Mail list logo