[CMF-checkins] CVS: CMF/CMFCollector/skins/collector - aCompact.py:1.1

Ken Manheimer klm@zope.com
Fri, 26 Oct 2001 13:42:33 -0400


Update of /cvs-repository/CMF/CMFCollector/skins/collector
In directory cvs.zope.org:/tmp/cvs-serv22329/skins/collector

Added Files:
	aCompact.py 
Log Message:


=== Added File CMF/CMFCollector/skins/collector/aCompact.py ===
## Script (Python) "aCustom.py"
##parameters=thetime
##title=Given a DateTime object, return a slightly more compact aCommon repr.

if same_type(thetime, ""):
    import DateTime
    dt = DateTime.DateTime(thetime)
else:
    dt = thetime

return "%s %s, %s %s" % (dt.aMonth(), dt.day(), dt.yy(), dt.TimeMinutes())