[Zope] Security?

Dylan Reinhardt zope at dylanreinhardt.com
Mon Dec 1 16:37:17 EST 2003


On Mon, 2003-12-01 at 12:45, Goldthwaite, Joe wrote:
> I modified
> the 'return "c"' line to 'return c'.  Now when I run it, I get "<? ISLines
> instance at 014879EC>" so I know I'm now returning my object.

Excellent, you're almost there.

>   Finally I try
> to reference my list if lines by printing the length like this;
> 
> <p tal:replace="python:len(here.GetISLines().DefLines)"></p>

What you want to do is pass your external method enough parameters that
it can just hand back a string, list, or other vanilla Python object.
Return c.DefLines from your external method instead of c. 


> Sorry, I don't usually use
> that kind of language but I seem to be shooting at the wrong target. It's no
> wonder I can't hit anything.

You're very close now... I'm sure you'll have it soon.

HTH,

Dylan




More information about the Zope mailing list