[Zope] dtml-if

maillists@summitmedia.com.ph maillists@summitmedia.com.ph
Fri, 28 Dec 2001 13:39:37 +0800


This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.

------_=_NextPart_001_01C18F62.096A6860
Content-Type: text/plain;
	charset="iso-8859-1"


Greetings and Merry Holiday!

I need help with dtml-if. I was able to successfully implement customized
error messages with email sending to me.

The problem is, I want to avoid receiving email when the errors are common
like LoginRequired errors.
I used this:
<dtml-if "error_type != 'LoginRequired'">
	<dtml-var sysad_send_process>
</dtml-if>

But then I want to avoid additional errors and thus:
<dtml-if "error_type != 'NotFound'">
	<dtml-var sysad_send_process>
<dtml-elif "error_type != 'Not Found'">
	<dtml-var sysad_send_process>
<dtml-elif "error_type != 'LoginRequired'">
	<dtml-var sysad_send_process>
<dtml-elif "error_type != 'SMTPSenderRefused'">
	<dtml-var sysad_send_process>
<dtml-elif "error_type != 'Bad Request'">
	<dtml-var sysad_send_process>
</dtml-if>

But now, all errors are sent to me. It seems like the dtml-if and dtml-elif
does not work.

What did I do wrong?

fritz <www.mesedilla.com>
senior systems administrator

summit interactive, inc.
www.fhm.com.ph | www.femalenetwork.com | www.candymag.com
---
+basta ikaw Lord 

------_=_NextPart_001_01C18F62.096A6860
Content-Type: text/html;
	charset="iso-8859-1"

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 5.5.2653.12">
<TITLE>dtml-if</TITLE>
</HEAD>
<BODY>
<BR>

<P><FONT SIZE=2>Greetings and Merry Holiday!</FONT>
</P>

<P><FONT SIZE=2>I need help with dtml-if. I was able to successfully implement customized error messages with email sending to me.</FONT>
</P>

<P><FONT SIZE=2>The problem is, I want to avoid receiving email when the errors are common like LoginRequired errors.</FONT>
<BR><FONT SIZE=2>I used this:</FONT>
<BR><FONT SIZE=2>&lt;dtml-if &quot;error_type != 'LoginRequired'&quot;&gt;</FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=2>&lt;dtml-var sysad_send_process&gt;</FONT>
<BR><FONT SIZE=2>&lt;/dtml-if&gt;</FONT>
</P>

<P><FONT SIZE=2>But then I want to avoid additional errors and thus:</FONT>
<BR><FONT SIZE=2>&lt;dtml-if &quot;error_type != 'NotFound'&quot;&gt;</FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=2>&lt;dtml-var sysad_send_process&gt;</FONT>
<BR><FONT SIZE=2>&lt;dtml-elif &quot;error_type != 'Not Found'&quot;&gt;</FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=2>&lt;dtml-var sysad_send_process&gt;</FONT>
<BR><FONT SIZE=2>&lt;dtml-elif &quot;error_type != 'LoginRequired'&quot;&gt;</FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=2>&lt;dtml-var sysad_send_process&gt;</FONT>
<BR><FONT SIZE=2>&lt;dtml-elif &quot;error_type != 'SMTPSenderRefused'&quot;&gt;</FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=2>&lt;dtml-var sysad_send_process&gt;</FONT>
<BR><FONT SIZE=2>&lt;dtml-elif &quot;error_type != 'Bad Request'&quot;&gt;</FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=2>&lt;dtml-var sysad_send_process&gt;</FONT>
<BR><FONT SIZE=2>&lt;/dtml-if&gt;</FONT>
</P>

<P><FONT SIZE=2>But now, all errors are sent to me. It seems like the dtml-if and dtml-elif does not work.</FONT>
</P>

<P><FONT SIZE=2>What did I do wrong?</FONT>
</P>

<P><FONT SIZE=2>fritz &lt;www.mesedilla.com&gt;</FONT>
<BR><FONT SIZE=2>senior systems administrator</FONT>
</P>

<P><FONT SIZE=2>summit interactive, inc.</FONT>
<BR><FONT SIZE=2>www.fhm.com.ph | www.femalenetwork.com | www.candymag.com</FONT>
<BR><FONT SIZE=2>---</FONT>
<BR><FONT SIZE=2>+basta ikaw Lord </FONT>
</P>

</BODY>
</HTML>
------_=_NextPart_001_01C18F62.096A6860--