Im利用Chameleon在Adhury网站Im开发。 这里是一部法典:
<option tal:repeat="option options"
value="${option.isoformat()}"
selected="${if request.get_param( %s%d%s %(day, row, type))==option.isoformat(): selected }">
${int(option.strftime( %I ))}${option.strftime( :%M%p )}
</option>
但是,出于某种原因,我总是会遇到一起错:
ExpressionError: invalid syntax
- String: "if request.get_param( %s%d%s %(day, row, type))==option.isoformat(): selected "
- Filename: /Users/theron/Sites/python/restaurateur/views/settings/hours.pt
I don t see what I m doing wrong. Any help?