[Zope] return structured result from Python scripts for page
templates
Max M
maxm@mxm.dk
Thu, 25 Jul 2002 14:30:02 +0200
Gabor Nagypal wrote:
> I would like to return a structured result (an "object") from a Python
> script to use it conveniently in a page template. E.g. I would like to
> have a get_person Python script which gives back a person with a name
> and an address. Then I could use a page template like:
I don't think you can create objects in a Python script. You need to
create an external script for that.
Otherwise your code looks dandy.
regards Max M
--
"Sorry I would Really Like To Help More On This Project,
But Am To Busy Doing Paid Work On A Tight Deadline"
Max M