Closed iksteen closed 10 years ago
Chameleon supports multiple assignment when performing iteration:
<li tal:repeat="(ix, item) items"></li>
However, in the xml extractor, value is split by the first whitespace character which means that value will contain item) items:
value
item) items
elif attribute[1] == 'repeat': (engine, value) = get_tales_engine(value.split(None, 1)[1])
And pot-create will fail:
Aborting due to Python syntax error in %s[%d]: %s ./portal/templates/sidebar.pt 7 item) items
Removing the space after the comma can function as a workaround.
Chameleon supports multiple assignment when performing iteration:
However, in the xml extractor,
value
is split by the first whitespace character which means thatvalue
will containitem) items
:And pot-create will fail:
Removing the space after the comma can function as a workaround.