[Zope] Populating a :list variable from the results of a ZSQL method

Tony McDonald tony.mcdonald@ncl.ac.uk
Fri, 10 Nov 2000 11:10:25 +0000


On 10/11/00 10:45 am, "Geir Bækholt" <geirh@funcom.com> wrote:

> 
> don't know about inside zope, but in plain python you could just do:
> 
> new_options = list(options)
> 

Yup - trying to do it all in DTML though...

> perhaps an external method would cut it:
> 
> return list(inputstring)
> 
The code that Chris Withers sent out might be the way to do it, but you've
got to be careful of the eval()...

def eval_options(self):
    return eval(self.REQUEST['options'])


Thanks for the thoughts Geir
Tone

------
Dr Tony McDonald,  Assistant Director, FMCC, http://www.fmcc.org.uk/
The Medical School, Newcastle University Tel: +44 191 222 5116
A Zope list for UK HE/FE  http://www.fmcc.org.uk/mailman/listinfo/zope