[Zope] ZServer *still* dying - help?

Chris McDonough chrism@digicool.com
Thu, 5 Apr 2001 12:56:17 -0400


It still shouldn't be crashing.

I wrote a unit test for this!!  (testParam26 in the test suite) ;-)  Wonder
if it passes... it does.  Darn.

What Zope version is this?

----- Original Message -----
From: "Thomas B. Passin" <tpassin@mitretek.org>
To: <zope@zope.org>
Sent: Thursday, April 05, 2001 12:49 PM
Subject: Re: [Zope] ZServer *still* dying - help?


> I don't know what's happening, but what about attaching the params to the
> REQUEST, then you don't have to send them separately.  Of course, you'd
have
> to rewrite show_html a bit, but it shouldn't take much doing.
>
> Then you would write things like
> ...
> <dtml-call "REQUEST.set('param1',m.param1)">
> ...
>  print container.machine.show_html(context,REQUEST)
>
> Or make the separate params into a single python list and pass the list:
>
> params=[m.param1,m.param2,...]
> print container.machine.show_html(context,REQUEST,params)
>
> Cheers,
>
> Tom P
>
> Mayers, Philip J asked -
>
> >
> > What's happening - I have a PythonScript that does this:
> >
> > m = container.machine.SQL_get(machineid=machineid)[0]
> > print container.machine.show_html(context,REQUEST,
> >                                   param1=m.param1,
> >                                   param2=m.param2,
> >                                   param3=m.param3,
> >                                   param4=m.param4,
> >                                   param5=m.param5,
> >                                   param6=m.param6,
> >                                   param7=m.param7,
> >                                   param8=m.param8,
> >                                   param9=m.param9,
> >                                   param0=m.param0)
> > return printed
> >
> > show_html is a DTML document. When called at "high" speed (2-3 times a
> > second) by URL traversal (i.e. GETing
> > http://site.name/Zope/path/pythonscript?machineid=whatever) this causes
> > either (in order of likelihood):
> >  ...
>
> > *But*, if I reduce the number of named parameters to the DTML method
(when
> > of course it doesn't render properly) then everything's OK. The current
> code
> > dies if there are >8 named parameters. But it seems to vary. I thought
> that
> > the parameters had to be records from an SQL query, but now I'm not so
> sure.
> >
>
>
>
> _______________________________________________
> Zope maillist  -  Zope@zope.org
> http://lists.zope.org/mailman/listinfo/zope
> **   No cross posts or HTML encoding!  **
> (Related lists -
>  http://lists.zope.org/mailman/listinfo/zope-announce
>  http://lists.zope.org/mailman/listinfo/zope-dev )
>