[Zope-dev] TALES idea: tuple unpacking

Richard Jones richardjones@optushome.com.au
Wed, 23 Jul 2003 15:59:58 +1000


--Boundary-02=_eRiH/x7yiIFllky
Content-Type: text/plain;
  charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
Content-Description: signed data
Content-Disposition: inline

During the Melbourne Zope3 Sprint, someone ran up against a situation where=
=20
they'd have liked to have TALES perform a tuple unpacking like Python can.=
=20
I've just run into a similar situation :)

Say a method listFilesByUser returns a list of (user, [files]) it'd be nice=
 to=20
be able to::

   tal:repeat=3D"user,files here/listFilesByUser"

or similar. Currently we would have to use a python: expression to manually=
=20
unpack the tuple. Kinda yucky.

Any comments?


   Richard

--Boundary-02=_eRiH/x7yiIFllky
Content-Type: application/pgp-signature
Content-Description: signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)

iD8DBQA/HiRerGisBEHG6TARAqHsAJ0Q15vJxuoNjUANhy1ygW1ipXekZACggpja
0MXRwWXqxSiTjuWU0sL4s1I=
=VcKH
-----END PGP SIGNATURE-----

--Boundary-02=_eRiH/x7yiIFllky--