Re: [Zope3-dev] should schema.Date accectp datetime values

2006-11-15 Thread Bernd Dorn
On 15.11.2006, at 00:39, Fred Drake wrote: any problems with this? and if no, is it ok to backport it to 3.3 I don't know. It seems like a bug to me, but I'm no bastion of backward-compatibility. for me too, so i checked in the fixes on trunk and 3.3 _

Re: [Zope3-dev] should schema.Date accectp datetime values

2006-11-14 Thread Fred Drake
On 11/14/06, Bernd Dorn <[EMAIL PROTECTED]> wrote: i just saw that zope.schema.Date objects accept datetime values because the default validate implementation uses isinstance to check the value. this is a problem imho, because datetime is a subclass of date but instances can't be compmared to eac