web/views/debug.py
branchtls-sprint
changeset 981 d86d1ee3b60e
parent 742 99115e029dca
child 1802 d628defebc17
equal deleted inserted replaced
980:59552ba2015f 981:d86d1ee3b60e
    10 from time import strftime, localtime
    10 from time import strftime, localtime
    11 
    11 
    12 from logilab.mtconverter import html_escape
    12 from logilab.mtconverter import html_escape
    13 
    13 
    14 from cubicweb.selectors import none_rset, match_user_groups
    14 from cubicweb.selectors import none_rset, match_user_groups
    15 from cubicweb.common.view import StartupView
    15 from cubicweb.view import StartupView
    16 
    16 
    17 def dict_to_html(w, dict):
    17 def dict_to_html(w, dict):
    18     # XHTML doesn't allow emtpy <ul> nodes
    18     # XHTML doesn't allow emtpy <ul> nodes
    19     if dict:
    19     if dict:
    20         w(u'<ul>')
    20         w(u'<ul>')