New to python, I believe that the following is valid syntax:
for item in list:
print item
else:
print 'no items in list'
When I put the following in a template I get a SyntaxError: invalid
syntax error with "else:" highlighted:
{{for key,value in form.errors.items():}}
<span class="error_message">{{=key}} {{=value}}</span>
{{break}}
{{else:}}
<span class="page_message">{{=message}}</span>
What am I missing/
Bill
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"web2py Web Framework" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---