[Zope-CMF] Effective Date inconsistencies

2007-06-23 Thread Alexander Limi
Hi, I was trying to do a very simple template operation today: 1. Show the Effective Date if it is identical or more recent than the Modification Date 2. Show both Effective and Modification Dates if Modification Date > Effective Date Should be simple, right? Published on […] Modif

Re: [Zope-CMF] Effective Date inconsistencies

2007-06-23 Thread Charlie Clark
Am 23.06.2007 um 11:18 schrieb Alexander Limi: Not so: - EffectiveDate returns a *string* 'None' when it has no value (wtf?) What would you rather have? An attribute error? This is the implementation from CMFDefault.DublinCore def EffectiveDate( self, zone=None ): """ Dublin Co

Re: [Zope-CMF] Effective Date inconsistencies

2007-06-23 Thread Sidnei da Silva
On 6/23/07, Alexander Limi <[EMAIL PROTECTED]> wrote: Not so: - EffectiveDate returns a *string* 'None' when it has no value (wtf?) At which point I want to ask: Can we fix this in CMF 2.1, so it is possible to get False values from the date objects? The current situation seems pretty ridicu

Re: [Zope-CMF] Effective Date inconsistencies

2007-06-23 Thread Wichert Akkerman
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. If Archetypes does that you should file a bugr

Re: [Zope-CMF] Effective Date inconsistencies

2007-06-23 Thread Wichert Akkerman
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.IDublinCor