Re: [web2py] try: for-loop

2012-05-30 Thread Bruno Rocha
I think you should not do this, do this kinf of logic on controller, model or module. On Wed, May 30, 2012 at 11:08 AM, BlueShadow wrote: > Hi I like to put a for-loop in a try except clause in an html file. > My problem is that the pass from the for loop terminates the try block. > {{try:}} > {

[web2py] try: for-loop

2012-05-30 Thread BlueShadow
Hi I like to put a for-loop in a try except clause in an html file. My problem is that the pass from the for loop terminates the try block. {{try:}} {{for x in db.test}} {{=x.title}} {{pass}} {{except:}} no database entries {{pass}}