[Cubicweb] docutils broken with CubicWeb

Denis Laxalde denis.laxalde at logilab.fr
Thu Apr 7 11:31:00 CEST 2016

Hi Dimitri,

Dimitri Papadopoulos Orfanos a écrit :
> This bug has been recently fixed in docutils:
> 	https://sourceforge.net/p/docutils/code/7795/
> Unfortunately it's not part of any formal release yet, so we're stuck
> with it in the short term. Any clue how to best work around this issue
> with minimal code modification? I would like to avoid modifying CubicWeb
> (deferring imports maybe) or docutils (killing the ugly relative_path()
> function wherever it's used with os.getcwd()).
> => How would you work around this from within a CubicWeb application?

I would add a couple of monkeypatches following the patch you linked 
above in site_cubicweb.py of the main cube waiting for a release of 
docutils fixing this.

Denis Laxalde
Logilab         http://www.logilab.fr

More information about the Cubicweb mailing list