Back to index

plone3  3.1.7
getViewTemplateId.py
Go to the documentation of this file.
00001 ## Script (Python) "getViewTemplateId"
00002 ##title=Get the id of the current view template of the context
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 getViewTemplateId script is deprecated and will be "
00010                   "removed in Plone 4.0. Use the getViewTemplateId method "
00011                   "of the @@plone view instead.")
00012 
00013 return context.restrictedTraverse('@@plone').getViewTemplateId()