[Zope3-dev] Dates and times

Steve Alexander steve@cat-box.net
Tue, 19 Nov 2002 13:41:08 +0000


>
> Sorry, misread. The bugbear is that there's no way to have a 'NULL' 
> time with Zope 2's DateTime.

That's not a flaw in DateTime. That's a flaw in properties handling in 
Zope 2.

In Zope 3, you can define a Schema that says "this attribute is a 
DateTime, but you can use None here as well to represent 'NULL'".

Similarly, you can't have None as an int property in Zope 2. It would be 
silly to have a special int 'NULL' value. The problem is best addressed 
at the level of Schemas.

--
Steve Alexander