How can I catch the exceptions in dtml so if a page contain an error, only the error will be left out without making the whold page an error message? rgs, Kent Sin
On Mon, 13 Mar 2000, Sin Hang Kin wrote:
How can I catch the exceptions in dtml so if a page contain an error, only the error will be left out without making the whold page an error message?
Take a look at the dtml-try tag in the dtml documentation. --RDM
-----Original Message----- From: zope-admin@zope.org [mailto:zope-admin@zope.org]On Behalf Of Sin Hang Kin Sent: maandag 13 maart 2000 0:54 To: Zope Admin list Subject: [Zope] Catch error
How can I catch the exceptions in dtml so if a page contain an error, only the error will be left out without making the whold page an error message?
Use try/except: <dtml-try> <dtml-var qqq> <dtml-except> Can't find 'qqq' </dtml-try> cb
participants (3)
-
Cornelis J. de Brabander -
R. David Murray -
Sin Hang Kin