Author: fw Date: 2006-03-11 18:26:28 +0000 (Sat, 11 Mar 2006) New Revision: 3593 Modified: lib/python/web_support.py Log: lib/python/web_support.py (make_numbered_list): New function. Modified: lib/python/web_support.py ==================================================================--- lib/python/web_support.py 2006-03-11 11:35:51 UTC (rev 3592) +++ lib/python/web_support.py 2006-03-11 18:26:28 UTC (rev 3593) @@ -443,6 +443,15 @@ append(LI(e)) return tag(''ul'', ul) +def make_numbered_list(entries): + """Creates a numbered list. + ENTRIES should be a sequence of P objects.""" + ol = [] + append = ol.append + for e in entries: + append(LI(e)) + return tag(''ol'', ol) + def make_list(lst, separator=", "): """Creates a list of HTML elements.""" assert type(lst) <> types.StringType