Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

multi-line python statements in tal:define #34

Closed
iksteen opened this issue Jun 10, 2014 · 0 comments · Fixed by #35
Closed

multi-line python statements in tal:define #34

iksteen opened this issue Jun 10, 2014 · 0 comments · Fixed by #35

Comments

@iksteen
Copy link
Contributor

iksteen commented Jun 10, 2014

The following example results in an error when parsing the template using pot-create:

<div tal:define="structural field.widget.hidden or
                            field.widget.category == 'structural'">
</div>

The error message is:

Aborting due to Python syntax error in %s[%d]: %s ./test.pt 1 field.widget.hidden or
                            field.widget.category == 'structural'

The example does work when parsed by chameleon.

Possible workarounds are adding a \ after or or removing the line break.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant