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
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
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
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
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