web/htmlwidgets.py
changeset 6154 b520763b6ace
parent 6140 65a619eb31c4
child 6569 806b53dc5474
equal deleted inserted replaced
6153:ade53a90ddf1 6154:b520763b6ace
    17 # with CubicWeb.  If not, see <http://www.gnu.org/licenses/>.
    17 # with CubicWeb.  If not, see <http://www.gnu.org/licenses/>.
    18 """html widgets
    18 """html widgets
    19 
    19 
    20 those are in cubicweb since we need to know available widgets at schema
    20 those are in cubicweb since we need to know available widgets at schema
    21 serialization time
    21 serialization time
    22 
       
    23 """
    22 """
    24 
    23 
       
    24 import random
    25 from math import floor
    25 from math import floor
    26 import random
       
    27 
    26 
    28 from logilab.mtconverter import xml_escape
    27 from logilab.mtconverter import xml_escape
    29 
    28 
    30 from cubicweb.utils import UStringIO
    29 from cubicweb.utils import UStringIO
    31 from cubicweb.uilib import toggle_action, htmlescape
    30 from cubicweb.uilib import toggle_action, htmlescape