summaryrefslogtreecommitdiffstats
path: root/lib/python/web_support.py
diff options
context:
space:
mode:
authorFlorian Weimer <fw@deneb.enyo.de>2006-03-11 18:26:28 +0000
committerFlorian Weimer <fw@deneb.enyo.de>2006-03-11 18:26:28 +0000
commit705cb50b11c561df3bbfbe614b48cbd974a5d6a3 (patch)
treebec90e497676d5cef346fa42b078c7a1df04f39d /lib/python/web_support.py
parentfcc002cc5cff5c2da7c6e9a72addae77d40367c1 (diff)
lib/python/web_support.py (make_numbered_list):
New function. git-svn-id: svn+ssh://svn.debian.org/svn/secure-testing@3593 e39458fd-73e7-0310-bf30-c45bca0a0e42
Diffstat (limited to 'lib/python/web_support.py')
-rw-r--r--lib/python/web_support.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/python/web_support.py b/lib/python/web_support.py
index aea05e2e84..1a6447ac56 100644
--- a/lib/python/web_support.py
+++ b/lib/python/web_support.py
@@ -443,6 +443,15 @@ def make_menu(convert, *entries):
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

© 2014-2024 Faster IT GmbH | imprint | privacy policy