Skip to content

Commit

Permalink
Added isExpired.py skin script as it will be removed from CMFPlone.
Browse files Browse the repository at this point in the history
  • Loading branch information
reinhardt committed Oct 4, 2018
1 parent 674d80c commit 0aacd98
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
15 changes: 15 additions & 0 deletions Products/ATContentTypes/skins/ATContentTypes/isExpired.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
## Script (Python) "isExpired"
##bind container=container
##bind context=context
##bind namespace=
##bind script=script
##bind subpath=traverse_subpath
##parameters=content=None
##title=Find out if the object is expired

from Products.CMFPlone.utils import isExpired

if not content:
content = context

return isExpired(content)
1 change: 1 addition & 0 deletions news/58.feature
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Added isExpired.py skin script as it will be removed from CMFPlone.

0 comments on commit 0aacd98

Please sign in to comment.