web/htmlwidgets.py
changeset 203 60cd67acf7fd
parent 0 b97547f5f1fa
child 213 6842c3dee34b
equal deleted inserted replaced
202:74f319aff847 203:60cd67acf7fd
    11 from logilab.mtconverter import html_escape
    11 from logilab.mtconverter import html_escape
    12 
    12 
    13 from cubicweb.common.utils import UStringIO
    13 from cubicweb.common.utils import UStringIO
    14 from cubicweb.common.uilib import toggle_action
    14 from cubicweb.common.uilib import toggle_action
    15 
    15 
       
    16 # XXX HTMLWidgets should have access to req (for datadir / static urls,
       
    17 #     i18n strings, etc.)
    16 class HTMLWidget(object):
    18 class HTMLWidget(object):
    17 
    19 
    18     def _initialize_stream(self, w=None):
    20     def _initialize_stream(self, w=None):
    19         if w:
    21         if w:
    20             self.w = w
    22             self.w = w