equal
deleted
inserted
replaced
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 |