Re: [Zope-dev] TALES idea: tuple unpacking

2003-07-25 Thread Chris Withers
Fred L. Drake, Jr. wrote: - Use a Python-like sequence unpacking syntax. This is probably most comfortable to template authors who are Python programmers first, and web guys (or gals!) second. -0 for feature creap - Use the namespace qualifiers to get an adapter to handle converting contain

Re: [Zope-dev] TALES idea: tuple unpacking

2003-07-23 Thread Fred L. Drake, Jr.
Gilles Lenfant writes: > I'm interrested into adding some other wishes for the next ZPT versions. > Where could those wishes be posted ? This is the place. There's only very limited resources available at Zope Corp to make changes happen right now, so be prepared to help make changes if there

Re: [Zope-dev] TALES idea: tuple unpacking

2003-07-23 Thread Fred L. Drake, Jr.
Paul Winkler writes: > In this case, consider a trivial change to (or wrapper around) > listFilesByUser to make it return a sequence of dictionaries > like {'user': some_user, 'files': (file1, file2...)} This is exactly what the proposal I posted a couple of weeks ago was trying to avoid. Wh

Re: [Zope-dev] TALES idea: tuple unpacking

2003-07-23 Thread Gilles Lenfant
Yes, this would be more comfortable, some of my templates would be cleaner with this feature. You may work this around like this... 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 ? Che

Re: [Zope-dev] TALES idea: tuple unpacking

2003-07-23 Thread Jean Jordaan
Say a method listFilesByUser returns a list of (user, [files]) it'd be nice to be able to:: tal:repeat="user,files here/listFilesByUser" or similar. Currently we would have to use a python: expression to manually unpack the tuple. Kinda yucky. yeah, or make listFilesByUser return {'username'

Re: [Zope-dev] TALES idea: tuple unpacking

2003-07-23 Thread Paul Winkler
On Wed, Jul 23, 2003 at 03:59:58PM +1000, Richard Jones wrote: > Say a method listFilesByUser returns a list of (user, [files]) > it'd be nice to > be able to:: > >tal:repeat="user,files here/listFilesByUser" > > or similar. Currently we would have to use a python: expression to manually >