Back to index

plone3  3.1.7
isDefaultPageInFolder.py
Go to the documentation of this file.
00001 ## Script (Python) "isDefaultPageInFolder"
00002 ##title=Find out if the current context is the default page in its parent
00003 ##bind container=container
00004 ##bind context=context
00005 ##bind namespace=
00006 ##bind script=script
00007 ##bind subpath=traverse_subpath
00008 ##parameters=
00009 context.plone_log("The isDefaultPageInFolder script is deprecated and will be"
00010                   " removed in Plone 4.0.  Use the isDefaultPageInFolder "
00011                   "method of the @@plone view instead.")
00012 
00013 return context.restrictedTraverse('@@plone').isDefaultPageInFolder()