Skip to content

Commit

Permalink
set effective as null if not published
Browse files Browse the repository at this point in the history
  • Loading branch information
cekk committed Aug 27, 2024
1 parent 8423003 commit f2a2e0f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion redturtle/bandi/browser/bando.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,12 +104,16 @@ def retrieveContentsOfFolderDeepening(self, path_dfolder):
siteid = api.portal.get().getId()
for brain in brains:
if not brain.getPath() == path_dfolder and not brain.exclude_from_nav:
effective = brain.effective
if effective.year() == 1969:
# content not yet published
effective = None
dictfields = dict(
title=brain.Title,
description=brain.Description,
url=brain.getURL(),
path=brain.getPath(),
effective=brain.effective,
effective=effective,
modified=brain.modified,
)
if brain.Type == "Link":
Expand Down

0 comments on commit f2a2e0f

Please sign in to comment.