[Cubicweb] demote_to_html and main_stream
sylvain.thenault at logilab.fr
Fri Apr 1 08:05:07 CEST 2011
On 31 mars 21:49, Carlos Balderas wrote:
> I'd like to know if someone can give me a clue of how to solve this error:
> ERROR: an exception occurred while calling js_update_events_calendar():
> 'CubicWebTwistedRequestAdapter' object has no attribute 'main_stream'
see https://www.cubicweb.org/ticket/712309 (read comments as well, there
is a clue there).
Aurélien and/or Adrien may give more insight about this?
> My first question is about the missing "main_stream" attribute, I am not
> sure why that is, as far as I see It is just about assign another type of
> value. e.i.
> TRANSITIONAL_DOCTYPE_NOEXT = u'<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0
> Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd
> My second question is about the use of @xhtmlize decorator, since the view
> I'd like to use uses "demote_to_html" looks like I don't really know what I
> am doing.. =S , so, Is it necesary to use @xhtmlize decorator to return the
> html code by this cubicweb/ajax method?
yes, you should to that anyway.
Sylvain Thénault LOGILAB, Paris (France)
Formations Python, Debian, Méth. Agiles: http://www.logilab.fr/formations
Développement logiciel sur mesure: http://www.logilab.fr/services
CubicWeb, the semantic web framework: http://www.cubicweb.org
More information about the Cubicweb