[web2py] Re: web2py book understanding

2010-08-19 Thread DenesL
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

[web2py] Re: web2py book understanding

2010-08-19 Thread dederocks
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

[web2py] Re: web2py book understanding

2010-08-19 Thread DenesL
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