[Zope] DateTime exceptions

Curtis Maloney curtis@umd.com.au
Thu, 16 Mar 2000 11:22:03 +1100


Greetings,

A workmate of mine has had this problem also, and now it's happened to me.

I cannot catch exceptions from the DateTime object!

My code:

<dtml-try>
    <dtml-call "REQUEST.set('delDate','%s/%s/%s' % (delYear, delMon, delDay) )">
<dtml-except>
    <dtml-call "REQUEST.set('delDate',0)">
    <font bgcolor="red">You have entered an invalid date.</font>
    <dtml-call "REQUEST.set('Error',1)">
</dtml-try>

Now, from my understanding, this should catch ALL exceptions.  So why, when i
give invalid values (like -1) does ZOPE give me an error page?

Is this some deficiency in the way the DateTime object handles exceptions?  Or
is there some funamental zen i'm not groking?

-- 
Have a better one,
	Curtis.

<dtml-var standard_work_disclaimer>