Re: [Zope] selected in select lists

2005-10-17 Thread Chris Withers
Garry Saddington wrote: The comparison is dynamic. Ah, so thisgroupabrev comes from the request? See? I could never have known that from JUST reading the DTML. In ZPT, it would have been request/thisgroupabrev and all would have been clear. The user selects an option, that option is pass

Re: [Zope] selected in select lists

2005-10-17 Thread Chris Withers
Garry Saddington wrote: This code does not work;-). That, in itself, as an argument for using ZPT. The reason it doesn't work is probably because of some subtlety in name lookup of your DTML method. Showing DTML to other people, say, on a mailing list, is much harder to grok than a ZPT, wh

Re: [Zope] selected in select lists

2005-10-14 Thread David H
Garry Saddington wrote: Tino Wildenhain wrote: Am Freitag, den 14.10.2005, 20:03 +0100 schrieb Garry Saddington: Chris Withers wrote: Garry Saddington wrote: DTML: expr="groupabbrev==_.str(thisgroupabbrev)"> selected > And just for comparison, here's the ZPT:

Re: [Zope] selected in select lists

2005-10-14 Thread Garry Saddington
Tino Wildenhain wrote: Am Freitag, den 14.10.2005, 20:03 +0100 schrieb Garry Saddington: Chris Withers wrote: Garry Saddington wrote: DTML: expr="groupabbrev==_.str(thisgroupabbrev)"> selected > And just for comparison, here's the ZPT: Stop using DTML ;-

Re: [Zope] selected in select lists

2005-10-14 Thread Tino Wildenhain
Am Freitag, den 14.10.2005, 20:03 +0100 schrieb Garry Saddington: > Chris Withers wrote: > > > Garry Saddington wrote: > > > >> DTML: > >> > >> > >> >> expr="groupabbrev==_.str(thisgroupabbrev)"> selected > >> > > >> > >> > > > > > > And just for comparison, here's the ZPT: > > > > >

Re: [Zope] selected in select lists

2005-10-14 Thread Garry Saddington
Chris Withers wrote: Garry Saddington wrote: DTML: expr="groupabbrev==_.str(thisgroupabbrev)"> selected > And just for comparison, here's the ZPT: Stop using DTML ;-) Chris This code does not work;-). If I always work in the ZMI and do not collaborate with designers on data

Re: [Zope] selected in select lists

2005-10-14 Thread Chris Withers
Garry Saddington wrote: DTML: expr="groupabbrev==_.str(thisgroupabbrev)"> selected > And just for comparison, here's the ZPT: Stop using DTML ;-) Chris -- Simplistix - Content Management, Zope & Python Consulting - http://www.simplistix.co.uk

Re: [Zope] selected in select lists

2005-10-12 Thread Garry Saddington
J Cameron Cooper wrote: Garry Saddington wrote: Nicolas Gouzy wrote: I think this code works : " selected > -- Nicolas Gouzy [EMAIL PROTECTED] This producing the following result, is this what it should do? Like I said: be careful about what comes out of getpas

Re: [Zope] selected in select lists

2005-10-12 Thread J Cameron Cooper
Garry Saddington wrote: Nicolas Gouzy wrote: I think this code works : " selected > -- Nicolas Gouzy [EMAIL PROTECTED] This producing the following result, is this what it should do? Like I said: be careful about what comes out of getpastoralgroups. These are Resu

Re: [Zope] selected in select lists

2005-10-12 Thread J Cameron Cooper
Garry Saddington wrote: J Cameron Cooper wrote: Garry Saddington wrote: I have a variable called 'groupabbrev' in the REQUEST. I am trying to automatically select an option in a select list based on this variable. I have tried this code and many others, and many googles but have not found

Re: [Zope] selected in select lists

2005-10-12 Thread Garry Saddington
Nicolas Gouzy wrote: I think this code works : " selected > -- Nicolas Gouzy [EMAIL PROTECTED] This producing the following result, is this what it should do? regards Garry ___ Zope maillist - Zope@zope.org http://mail.zo

Re: [Zope] selected in select lists

2005-10-12 Thread Garry Saddington
J Cameron Cooper wrote: Garry Saddington wrote: I have a variable called 'groupabbrev' in the REQUEST. I am trying to automatically select an option in a select list based on this variable. I have tried this code and many others, and many googles but have not found anything that works. Can

Re: [Zope] selected in select lists

2005-10-12 Thread J Cameron Cooper
Garry Saddington wrote: I have a variable called 'groupabbrev' in the REQUEST. I am trying to automatically select an option in a select list based on this variable. I have tried this code and many others, and many googles but have not found anything that works. Can anyone see what I am doing

[Zope] selected in select lists

2005-10-12 Thread Garry Saddington
I have a variable called 'groupabbrev' in the REQUEST. I am trying to automatically select an option in a select list based on this variable. I have tried this code and many others, and many googles but have not found anything that works. Can anyone see what I am doing wrong? expr="'groupa