Re: [Zope] returning list from PythonScript

2006-01-23 Thread Chris Withers
Slobodan Jovcic wrote: This kind of logic has no business being in a page template... Chris -- Simplistix - Content Management, Zope & Python Consulting - http://www.simplistix.co.uk ___ Zope maillist - Zope@zope.org http://mail.zope

Re: [Zope] returning list from PythonScript

2006-01-20 Thread Slobodan Jovcic
I'd probably just call container.MyScript() as self.MyScript() in the external method. I'm trying to keep external method versatile. But i'm curious as to why your example doesn't work. There was an error in the script that I fixed, but never saved the file. Doh! Thanks, Jovca __

Re: [Zope] returning list from PythonScript

2006-01-20 Thread David
J Cameron Cooper wrote: Slobodan Jovcic wrote: Hi, I'm trying to pass a list of values between the script and external method. ZPT contains the following: container.myScript() is a Python Script that returns a list of values. container.myExtMethod() is an External Method expecting that

Re: [Zope] returning list from PythonScript

2006-01-20 Thread Slobodan Jovcic
True. Somehow, some of the latest changes in the script were lost, probably by closing the browser without save, including a change of: print result return printed to: return result Very stupid. Jovca _ Slobodan Jovcic Teaching Enhancement Center Office of Instr

Re: [Zope] returning list from PythonScript

2006-01-20 Thread J Cameron Cooper
Slobodan Jovcic wrote: Hi, I'm trying to pass a list of values between the script and external method. ZPT contains the following: container.myScript() is a Python Script that returns a list of values. container.myExtMethod() is an External Method expecting that list. However, all it ge

[Zope] returning list from PythonScript

2006-01-20 Thread Slobodan Jovcic
Hi, I'm trying to pass a list of values between the script and external method. ZPT contains the following: container.myScript() is a Python Script that returns a list of values. container.myExtMethod() is an External Method expecting that list. However, all it gets is a string represent