five.pt: combination of tal:condition and tal:attribute causes 'UnboundLocalError: local variable '__default_XXXXXXX' referenced before assignment
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Chamelon ZPT |
Fix Committed
|
Undecided
|
Unassigned |
Bug Description
The following source:
<tal:block>
<tag tal:condition=
<tag tal:condition=
</tal:block>
Causes this error:
Traceback (most recent call last):
[...]
File "src/five.
result = self.template.
File "src/five.
return base_renderer(
File "src/five.
return super(PageTemplate, self).render(
File "src/five.
self.
File "91b40fe496271d
UnboundLocalError: local variable '__default_
I could reproduce it with a TTW ZPT, but not with pure Chameleon (i.e. adding the above source to src/chameleon/
This bug is fixed by pinning:
sourcecodegen = 0.6.14
This minimum dep has been committed to five.pt in setup.py, but meanwhile users of five.pt can install it (or pin it in buildout) by themselves.