[CMF-checkins] CVS: Products/CMFDefault/skins/generic - truncID.py:1.1 trunID.py:NONE
Andrew Sawyers
andrew@digicool.com
Tue, 7 Aug 2001 15:36:32 -0400
Update of /cvs-repository/Products/CMFDefault/skins/generic
In directory cvs.zope.org:/tmp/cvs-serv3405/skins/generic
Added Files:
truncID.py
Removed Files:
trunID.py
Log Message:
*renamed truncID to be more clear as to what it is doing.
*added size arguement so that the length ID's are truncated at are variable.
=== Added File Products/CMFDefault/skins/generic/truncID.py ===
## Script (Python) "truncID.py $Revision: 1.1 $"
##bind context=context
##bind namespace=
##bind script=script
##bind subpath=traverse_subpath
##parameters=objID, size
##title=return truncated objID
##
if len(objID) > size:
return objID[:size] + '...'
else:
return objID
=== Removed File Products/CMFDefault/skins/generic/trunID.py ===