Re: [web2py] Looping in the browser?

2010-05-12 Thread Andrew Evans
ty this is exactly what I need ty very much

[web2py] Looping in the browser?

2010-05-11 Thread Andrew Evans
Hello I have a problem. I have code written for web2py that has two functions, the problem is in the looping of the second function. it only executes the loop once. Is there anyway I can continue looping def check(): for target_keyword in session.keywords.split(','): gs =

Re: [web2py] Looping in the browser?

2010-05-11 Thread Miguel Lopes
I suppose you want to return several positions that match (domain == session.target_domain) then you must not use return (as it escapes the loop and exits the function scope). You should collect all your matches in a list and the return the list in the end. Something like: def check():