[Zope-Checkins] CVS: Packages/DocumentTemplate - DT_Util.py:1.52
Jim Fulton
jim@tarzan.digicool.com
Mon, 22 Mar 1999 12:28:38 -0500
Update of /cvs-repository/Packages/DocumentTemplate
In directory tarzan.digicool.com:/projects/users/jim/lib/python/DocumentTemplate
Modified Files:
DT_Util.py
Log Message:
Added a new "builtin" function reorder:
reorder(s, [with, without]]) --
Reorder the items in s according to the order given in with
and with items mentioned in without removed. Items from s
not mentioned in with are removed.
s, with, and without are all either sequences if strings
or sequences of key-value tuples, with ordering done on the
keys.
This function is useful for constructing ordered select lists.