[ZCM] [ZC] 1103/ 1 Request "AssertionError if
tal:replace="structure .." and i18n:name is used together"
Collector: Zope Bugs, Features,
and Patches ...
zope-coders-admin at zope.org
Wed Oct 29 11:53:39 EST 2003
Issue #1103 Update (Request) "AssertionError if tal:replace="structure .." and i18n:name is used together"
Status Pending, Zope/bug low
To followup, visit:
http://zope.org/Collectors/Zope/1103
==============================================================
= Request - Entry #1 by camil7 on Oct 29, 2003 11:53 am
If one uses tal:replace="structure ..."
and i18n:name="..." within
one tag, one gets the not very helpful error message:
Compilation failed
exceptions.AssertionError:
It seems the problem is caused by an assertion statement around line 345 in TAL/TALGenerator.py
saying something like:
# XXX Would key be anything but 'text' or None?
assert key in ('text', None)
Well, "key" can be "structure", thus replacing
the assertion by:
assert key in ('text', 'structure', None)
fixes the AssertionError.
Here is a minmal page template for reproducing the issue:
<test tal:replace="structure string:foo" i18n:name="bar" />
==============================================================
More information about the Zope-Collector-Monitor
mailing list