web/htmlwidgets.py
changeset 4023 eae23c40627a
parent 3798 d2c27621cc81
child 4183 b5aa030bb2f9
equal deleted inserted replaced
4022:934e758a73ef 4023:eae23c40627a
     1 """html widgets
     1 """html widgets
     2 
     2 
     3 those are in cubicweb.common since we need to know available widgets at schema
     3 those are in cubicweb since we need to know available widgets at schema
     4 serialization time
     4 serialization time
     5 
     5 
     6 :organization: Logilab
     6 :organization: Logilab
     7 :copyright: 2001-2009 LOGILAB S.A. (Paris, FRANCE), license is LGPL v2.
     7 :copyright: 2001-2009 LOGILAB S.A. (Paris, FRANCE), license is LGPL v2.
     8 :contact: http://www.logilab.fr/ -- mailto:contact@logilab.fr
     8 :contact: http://www.logilab.fr/ -- mailto:contact@logilab.fr
    10 """
    10 """
    11 
    11 
    12 from logilab.mtconverter import xml_escape
    12 from logilab.mtconverter import xml_escape
    13 
    13 
    14 from cubicweb.utils import UStringIO
    14 from cubicweb.utils import UStringIO
    15 from cubicweb.common.uilib import toggle_action, limitsize, htmlescape
    15 from cubicweb.uilib import toggle_action, limitsize, htmlescape
    16 from cubicweb.web import jsonize
    16 from cubicweb.web import jsonize
    17 
    17 
    18 # XXX HTMLWidgets should have access to req (for datadir / static urls,
    18 # XXX HTMLWidgets should have access to req (for datadir / static urls,
    19 #     i18n strings, etc.)
    19 #     i18n strings, etc.)
    20 class HTMLWidget(object):
    20 class HTMLWidget(object):