[Zope3-dev] Dates and times

Jim Fulton jim@zope.com
Tue, 19 Nov 2002 09:20:49 -0500


Steve Alexander wrote:
>>
>> 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.

And schemas do handle this. Whew. :)

Jim


-- 
Jim Fulton           mailto:jim@zope.com       Python Powered!
CTO                  (888) 344-4332            http://www.python.org
Zope Corporation     http://www.zope.com       http://www.zope.org