We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Reproduction:
>>> from zope.component import provideAdapter >>> from zope.traversing.adapters import DefaultTraversable >>> from Products.PageTemplates.PageTemplate import PageTemplate >>> from Products.PageTemplates.tests.util import useChameleonEngine >>> useChameleonEngine(); provideAdapter(DefaultTraversable, (None,)) >>> t = PageTemplate() >>> t.write('<tal:repeat repeat="x options/seq" content="repeat/x/length" />') >>> t(seq="abc") Traceback (most recent call last): ... File "...Products/PageTemplates/Expressions.py", line 126, in render ob = ob() File "...zope.tales/src/zope/tales/tales.py", line 526, in length return len(self._seq) TypeError: object of type 'list_iterator' has no len() ... - Expression: "repeat/x/length" - Filename: <string> - Location: (line 1: col 44) - Arguments: template: <Products.PageTemplates.PageTemplate.PageTemplate object at 0x7fa804c59d30> options: {'seq': 'abc', 'args': ()} ...
Zope 4.x/5.x
The text was updated successfully, but these errors were encountered:
Fix #913
d58e3c0
Fix #913 (#914)
ab6046e
b7529d8
Fix #913 (#914) (#918)
dc48551
d-maurer
Successfully merging a pull request may close this issue.
BUG/PROBLEM REPORT
Reproduction:
Zope 4.x/5.x
The text was updated successfully, but these errors were encountered: