common/uilib.py
branchstable
changeset 2375 628000fcf7dc
parent 2312 af4d8f75c5db
child 2398 a8d18e320ef3
child 2399 68799e25f893
equal deleted inserted replaced
2373:50e01ff07f06 2375:628000fcf7dc
   226     if content:
   226     if content:
   227         if escapecontent:
   227         if escapecontent:
   228             content = xml_escape(unicode(content))
   228             content = xml_escape(unicode(content))
   229         value += u'>%s</%s>' % (content, tag)
   229         value += u'>%s</%s>' % (content, tag)
   230     else:
   230     else:
   231         value += u'/>'
   231         value += u'></%s>' % tag
   232     return value
   232     return value
   233 
   233 
   234 def tooltipize(text, tooltip, url=None):
   234 def tooltipize(text, tooltip, url=None):
   235     """make an HTML tooltip"""
   235     """make an HTML tooltip"""
   236     url = url or '#'
   236     url = url or '#'