[Zope-Coders] Replace Zope2 DateTime._parse() with Zope3's DateTimeParser

Steve Alexander steve@cat-box.net
Fri, 22 Nov 2002 15:02:04 +0000


Shane Hathaway wrote:

> Steve Alexander wrote:
>
> > In Zope 3, my suggestion could be implemented with an adapter that
> > adapts a generic DateTime parse to a USDateTime parse object.
>
>
> Just a coding style question: wouldn't it make more sense for a
> USDateTimeParser to be a subclass of DateTimeParser?  I know adapters
> are "hip" these days :-) but it seems much more natural to write a
> subclass in this situation.

Yes. You're right :)   Maybe I should take a break and do some Zope 2 
work for a while.

--
Steve Alexander