[Zope-CMF] Re: Re: Effective Date inconsistencies

Alexander Limi limi at plone.org
Sat Jun 23 13:30:55 EDT 2007


On Sat, 23 Jun 2007 04:34:37 -0700, Charlie Clark  
<charlie at begeistert.org> wrote:

> If it returns a __FLOOR_DATE then you can easily write your own  
> comparison to create a boolean.
>
> <p tal:condition="python: context.effective() > DateTime(1970, 0) and  
> context.effective < context.modified()">has an effective date and was  
> modified afterwards</p>

Wonderful, then my template code depends on some variable defined in the  
code as the floor date as a private variable, meaning I shouldn't  
introspect it. Very robust. ;)

-- 
Alexander Limi · http://limi.net



More information about the Zope-CMF mailing list