392 else: # we receive unicode keys which is not supported by the **syntax |
392 else: # we receive unicode keys which is not supported by the **syntax |
393 extraargs = dict((str(key), value) |
393 extraargs = dict((str(key), value) |
394 for key, value in extraargs.items()) |
394 for key, value in extraargs.items()) |
395 comp = self._cw.vreg[registry].select(compid, self._cw, rset=rset, **extraargs) |
395 comp = self._cw.vreg[registry].select(compid, self._cw, rset=rset, **extraargs) |
396 extraargs = extraargs or {} |
396 extraargs = extraargs or {} |
397 return comp.render(**extraargs) |
397 stream = comp.set_stream() |
|
398 comp.render(**extraargs) |
|
399 extresources = self._cw.html_headers.getvalue(skiphead=True) |
|
400 if extresources: |
|
401 stream.write(u'<div class="ajaxHtmlHead">\n') |
|
402 stream.write(extresources) |
|
403 stream.write(u'</div>\n') |
|
404 return stream.getvalue() |
398 |
405 |
399 @check_pageid |
406 @check_pageid |
400 @xhtmlize |
407 @xhtmlize |
401 def js_inline_creation_form(self, peid, petype, ttype, rtype, role, i18nctx): |
408 def js_inline_creation_form(self, peid, petype, ttype, rtype, role, i18nctx): |
402 view = self._cw.vreg['views'].select('inline-creation', self._cw, |
409 view = self._cw.vreg['views'].select('inline-creation', self._cw, |