Yep I'm sure. That's the line. I tried this also; <tr tal:repeat="item python:here.GetISLines(request.get('FY'), request.get('Per'), request.get('OrgType'), request.get('OrgNo'))"> I got the exact same message. I replaced the null parameter on the function but I still got the same result. I'll keep trying. Joe Goldthwaite -----Original Message----- From: zope-bounces@zope.org [mailto:zope-bounces@zope.org]On Behalf Of Paul Winkler Sent: Tuesday, December 02, 2003 8:56 PM To: zope@zope.org Subject: Re: [Zope] Two more questions On Tue, Dec 02, 2003 at 07:27:42PM -0700, Goldthwaite, Joe wrote:
Thanks again. Still no go although it looks like it's getting closer. I tried this;
<tr tal:replace="item python:here.GetISLines(FY=request.FY, Per=request.Per)">
To my programmer eyes, that looks like it might be correct.
To mine it looks wrong :-) In fact, you should get a Compilation Failed error when you save that page template. That's what I get here. In addition, the request object is a mapping, not a collection of arbitrary attributes. Try request.get('FY') instead of request.FY.
I got a really strange error though;
Error Type: TypeError Error Value: unsupported operand type(s) for -
That IS odd. Are you sure that what you gave above is really your code? -- Paul Winkler http://www.slinkp.com Look! Up in the sky! It's CRO-STINKY DEMON MAN! (random hero from isometric.spaceninja.com) _______________________________________________ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )