On Thu, Jan 05, 2006 at 12:49:29PM +0100, M.-A. DARCHE wrote:
[snip]
> File "/usr/lib/site-python/docutils/utils.py", line 458, in
> get_stylesheet_reference
> assert not settings.stylesheet, \
> AssertionError: stylesheet and stylesheet_path are mutually exclusive.
>
Marc-Aurèle -
I was able to reproduce this error by installing Docutils 0.3.9.
I've been using a version checked out from SVN, in which this
problem seems to have been fixed. I've made a patch to my script
that is a work-around. A diff/patch is below. By the way, the
snapshot currently at the Docutils Web site also fixes this:
http://docutils.sourceforge.net/
http://docutils.sourceforge.net/docutils-snapshot.tgz
At that Web site, the snapshot is recommended over version 0.3.9.
Regardless, the patch is simple. Here it is:
--- buildCPSdocs-old.py 2006-01-05 09:11:01.000000000 -0800
+++ buildCPSdocs.py 2006-01-05 09:09:34.000000000 -0800
@@ -145,6 +145,7 @@
settings_overrides = {
'generator': 1,
'stylesheet_path': stylesheetPath,
+ 'stylesheet': None,
'source_url': baseName,
}
publish_file(source_path='%s' % sourceName,
Please let me know whether this fixes the problem for you.
Dave
--
Dave Kuhlman
http://www.rexx.com/~dkuhlman
_______________________________________________
cps-devel mailing list
http://lists.nuxeo.com/mailman/listinfo/cps-devel