web/views/basecontrollers.py
branchstable
changeset 4976 34fd21f65702
parent 4911 898c35be5873
child 4984 6cb91be7707f
equal deleted inserted replaced
4975:35b0dd80dc06 4976:34fd21f65702
   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,