<<begin quote>>
{{extend 'm_layout.html'}}
<br><br><br><br>
{{=message}}
<br><br>
{{if (pledged_labor_hours == 0):}}
{{pass}}
{{else:}}
{{=form}}
{{pass}}
<<end quote>>


the above code in a view file gives the following error:


<<begin quote>>
Error traceback
1.
2.
3.
4.
5.
6.
7.
Traceback (most recent call last):
  File "gluon/restricted.py", line 171, in restricted
  File "C:\Users\Auden 708-497-0167\Desktop\web2py\applications
\oves_beta_001x2auden/views/member/enter_labor_bid.html", line 88
    else:
       ^
SyntaxError: invalid syntax
<<end quote>>


but when I changed the code to:

<<begin quote>>
{{extend 'm_layout.html'}}
<br><br><br><br>
{{=message}}
<br><br>
{{if (pledged_labor_hours == 0):}}
{{pass}}
{{if (pledged_labor_hours != 0):}}
{{=form}}
{{pass}}
<<end quote>>

Everything works as expected....


Is that a bug? or am I missing something?


--

You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To post to this group, send email to web...@googlegroups.com.
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en.


Reply via email to