Back to index

plone3  3.1.7
cropText.py
Go to the documentation of this file.
00001 ## Script (Python) "cropText"
00002 ##parameters=text, length, ellipsis='...'
00003 ##title=Crop text on a word boundary
00004 
00005 context.plone_log("The cropText script is deprecated and will be "
00006                   "removed in Plone 4.0. Use the cropText method "
00007                   "of the @@plone view instead.")
00008 
00009 return context.restrictedTraverse('@@plone').cropText(text, length, ellipsis='...')