[Zope-dev] TALES idea: tuple unpacking

Gilles Lenfant gilles@pilotsystems.net
Wed, 23 Jul 2003 17:32:20 +0200


Yes, this would be more comfortable, some of my templates would be cleaner
with this feature.
You may work this around like this...

<stuff tal:define="packed python: someScript(stuff, foo, bar);
 item1 python: packed[0];
 item2 python: packed[1]">

with someScript ending with...

return foo, bar

I'm interrested into adding some other wishes for the next ZPT versions.
Where could those wishes be posted  ?

Cheers

--Gilles