[Zope] strange <dtml-sendmail> problem
Kapil Thangavelu
kthangavelu@earthlink.net
Tue, 17 Oct 2000 16:26:33 -0700
Erik Myllymaki wrote:
>
> This is a DTML_Method I call from my standard_error_message:
>
> <dtml-sendmail mailhost="MailHost">
> To: Webmaster <<dtml-var webstaff>>
> From: ZopeServer <<dtml-var zopeserveraddress>>
> Subject: Problem at <dtml-var URL>
>
> Error Type: <dtml-var error_type>
> Error Value: <dtml-var error_value>
> Error Msg: <dtml-var error_message>
>
> <dtml-in "REQUEST.items()">
> <dtml-var sequence-key>: <dtml-var sequence-item>
> </dtml-in>
> </dtml-sendmail>
>
> I call it like this: <dtml-var send_errors>
>
> The mail is sent appropriately including all the REQUEST items, but the page
> that is calling this DTML_Method never finishes downloading.
>
> It seems that the loop through the REQUEST items causes page rendering to
> hang? After several minutes, stopping the page download brings up a
> *transfer interupted* message and only then do I see the bottom of the page.
>
> If I leave this out:
>
> <dtml-in "REQUEST.items()">
> <dtml-var sequence-key>: <dtml-var sequence-item>
> </dtml-in>
>
> ...it works well.
>
> Thanks for you help.
probably because the response is part of the request object, so you
loop...
do a request.keys() to see whats there literally and a <dtml-var
REQUEST>
request variables in dtml are in request.other
request variables passed in through dtml are in request.form
cheers
kapil
>
> --
> Erik Myllymaki
> erik@pacific-shores.com
>
> _______________________________________________
> 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 )