Coverage for khufu/images/thumbnails.py : 100%

Hot-keys on this page
r m x p toggle line displays
j k next/prev highlighted chunk
0 (zero) top of page
1 (one) first highlighted chunk
1# encoding: utf-8
2from . import *
4def thumbnails(
5 listItems=[]
6):
7 """
8 *Generate a thumbnail - TBS style*
10 **Key Arguments**
12 - ``htmlContent`` -- the html content of the thumbnail
15 **Return**
17 - ``thumbnail`` -- the thumbnail with HTML content
19 """
20 theseItems = ""
21 for item in listItems:
22 theseItems = "%(theseItems)s %(item)s" % locals()
24 thumbnails = """<ul class="thumbnails" id=" ">%(theseItems)s</ul>""" % locals(
25 )
27 return thumbnails