Re: Re: calling ZPT from script python - problem

Kenneth Gonsalves <[email protected]> Thu, 23 Jun 2005 18:03:45 +0530
Newsgroups gmane.comp.web.zope.page-templates
Message-ID <[email protected]>
On Wednesday 22 Jun 2005 8:19 am, Kenneth Gonsalves wrote:

> i solved it like this:
>
> python:request.set('compname',options['compname'])
> and then accessed it as
> request['compname']
>
> from what i can see, the end script called is a recursive script
> and for some reason, it only works if the variable comes from
> 'request' and not from 'options'. I am going to make the simplest
> example of a recursive script and see if this hypothesis is
> correct. will revert

sorry about this red herring - the problem was that i had 
inadvertently chose 'redirect_to' instead of 'traverse_to' in my 
controller page template, which of course, zapped the options. 20 
hours of programming time wasted!

-- 
regards
kg

http://www.livejournal.com/users/lawgon
tally ho! http://avsap.org.in
ಇಂಡ್ಲಿನಕ್ಸ வாழ்க!