[Zope] DateTime exceptions
Curtis Maloney
curtis@umd.com.au
Thu, 16 Mar 2000 11:36:28 +1100
On Thu, 16 Mar 2000, Curtis Maloney wrote:
> 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?
erm... just ignore me...
it's early... and i'm tired... and .... <dtml-var lame_excuses>
--
Have a better one,
Curtis.
<dtml-var standard_work_disclaimer>