The Plone dexterity effective date is returns beginning of epoch [plone.dexterity/content.py at master · plone/plone.dexterity · GitHub] if the document is not published or private. Is there a good way to handle checking if effective date is set ? Thanks!
context.effective() == FLOOR_DATE?
Of course, you need to import
FLOOR_DATE. For use in a template, you may need to use security declarations to make this possible. For those cases, I have a module
public with imports that should be available to restricted contexts and make its import possible with an
Why don’t you use
EffectiveDate()? This one returns either None or the
effective_date set on the content. With
effective() you get either the content’s
Thank you @dieter and @tmassman for great answers.