Coverage for khufu/addons/well.py : 91%

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# CREATED : 20130508
3def well(
4 wellText='',
5 wellSize='default',
6 htmlId=False,
7 htmlClass=False):
8 """ *Get well. Use the well as a simple effect on an element to give it an inset effect.*
10 **Key Arguments**
12 - ``wellText`` -- the text to be displayed in the well
13 - ``wellSize`` -- the size of the well [ "default" | "large" | "small" ]
16 **Return**
18 - ``well`` -- the well """
21 if htmlId is False:
22 htmlId = ""
23 else:
24 htmlId = """id="%(htmlId)s" """ % locals()
26 if htmlClass is False:
27 htmlClass = ""
29 if wellSize == 'default':
30 wellSize = ''
31 else:
32 wellSize = 'well-%(wellSize)s' % locals()
33 well = """
34 <div class="well %(wellSize)s %(htmlClass)s" %(htmlId)s>
35 %(wellText)s
36 </div>""" % locals()
37 return well