OK it obviously has nothing to do with the for loop in try except because the for loop finishes when there are no entries in articles. But some basic understanding of python should have told me the solution^^ thats what works if anyone is interested: {{try:}} {{print article[0].title}} {{empty=0}} {{except:}} {{empty=1}} {{pass}} {{if empty==0}} #for loop {{else:}} static message {{pass}}
- [web2py] Re: try: for-loop Niphlod
- [web2py] Re: try: for-loop BlueShadow
- [web2py] Re: try: for-loop Niphlod
- Re: [web2py] Re: try: for-loop Bruno Rocha
- Re: [web2py] Re: try: for-loop Niphlod
- Re: [web2py] Re: try: for-loop Anthony
- Re: [web2py] Re: try: for-loop Niphlod
- Re: [web2py] Re: try: for-loop Doug Philips
- [web2py] Re: try: for-loop BlueShadow
- [web2py] Re: try: for-loop BlueShadow
- [web2py] Re: try: for-loop BlueShadow