[CMF-checkins] CVS: Products/CMFDefault/skins/generic - trunID.py:1.1

Andrew Sawyers andrew@digicool.com
Mon, 30 Jul 2001 12:15:36 -0400


Update of /cvs-repository/Products/CMFDefault/skins/generic
In directory cvs.zope.org:/tmp/cvs-serv5060/CMFDefault/skins/generic

Added Files:
	trunID.py 
Log Message:

*added Python script to truncate objID's if they are greater then
15 to reduce the expanding actions box due to very long id's.
*implemented this method in the actions box for ZPT based skins.


 
=== Added File Products/CMFDefault/skins/generic/trunID.py ===
## Script (Python) "unauthRedirect.py $Revision: 1.1 $"
##bind context=context
##bind namespace=
##bind script=script
##bind subpath=traverse_subpath
##parameters=objID
##title=return truncated objID
##
if len(objID) > 15:
    return objID[:15] + '...'
else:
   return objID