Yes. That was correct. I did encounter that scenario. I was able to fix it through your help. Thanks. fritz <www.mesedilla.com> senior systems administrator summit interactive, inc. www.fhm.com.ph | www.femalenetwork.com | www.candymag.com --- +basta ikaw Lord
-----Original Message----- From: Dirk Datzert [mailto:Dirk.Datzert@rasselstein-hoesch.de] Sent: Friday, December 28, 2001 05:29 PM To: maillists@summitmedia.com.ph Cc: zope@zope.org Subject: Re: [Zope] dtml-if
This is not a dtml-if/dtml-elif problem this is a misunderstound if/elif/then construct.
You got all Errors Except 'NotFound' sent thru the first dtml-if, and the 'NotFound' error is sent thru the dtml-elif of 'LoginRequired'. You can remove all other statements and the result will be the same.
Define a list of your unwanted error_types like this:
error_types = [ 'NotFound',''LoginRequired',...]
your if have to something like this:
if not ( error_type in error_types ): sysad_send_process
Regards, Dirk
maillists@summitmedia.com.ph schrieb:
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
participants (1)
-
maillists@summitmedia.com.ph