[Zope-CMF] Re: Effective Date inconsistencies

Wichert Akkerman wichert at wiggy.net
Sat Jun 23 09:16:57 EDT 2007


Previously Maurits van Rees wrote:
> Wichert Akkerman, on 2007-06-23:
> > Previously Wichert Akkerman wrote:
> >> Previously Alexander Limi wrote:
> >> > Not so:
> >> > 
> >> > - EffectiveDate returns a *string* 'None' when it has no value (wtf?)
> >> 
> >> That is wrong: it should return 'the time in the system default
> >> timezone' as documented in T Products.CMFCore.interfaces.IDublinCore.
> >
> > I misread the interface; that only specified what should happen if no
> > timezone is given. The interface says that the method should return a
> > string which corresponds to the time or None if no time is set. So the
> > behaviour you see is expected and can not be changed without breaking
> > backwards compatibility.
> 
> Where are you reading that?  Products.CMFCore.interfaces.IDublinCore
> only has some comments:

Look at what interfaces/__init__.py does: it imports the interface from
_content.py. DublincCore.py is a bbb stub.

Wichert.

-- 
Wichert Akkerman <wichert at wiggy.net>    It is simple to make things.
http://www.wiggy.net/                   It is hard to make things simple.


More information about the Zope-CMF mailing list