[pypy-dev] Re: Problem with current ReST snapshot
Christian Tismer
tismer at stackless.com
Sat Oct 1 13:13:38 CEST 2005
Hi Holger,
> On Fri, Sep 30, 2005 at 04:48 +0200, Christian Tismer wrote:
>
>>while struggling with templates and OOo, I encountered a problem
>>when I tried to switch to the recent docutils snapshot.
>
>
> If i may ask: did you go for a docutils snapshot instead
> of the stable releases 0.3.7/8/9 for a particular reason?
Well, I was trying to find new features, because the
website recommends to use the snapshot if you want it all.
I was hoping for something like an OpenDocument backend.
I also upgraded to the OOo beta, just to find out if there
are featurs which make my task easier.
Actually this didn't help.
[crash report, complaining about the pylib]
> Well, is it really the py library that is hard to debug here?
> IMHO it is docutils which is sometimes hard to track
> regarding it's configuration limitations/restrictions.
> The 67 lines of py/misc/rest.py support are there to
> prevent everybody from having to think about this, btw.
It is not rest.py, but the rest of the logic which I don't
understand. I have no clear picture how the lib finds
the paths, how it operates on confrest and conftest,
because the control flow is not obvious to me and
the modules neither say what they do, nor they define
their interface.
I agree that it is nice not to have to care about things,
it would just be nicer if I could care and help myself
easier if the nice intent dowsn't work. In this case,
it is doing the opposite, giving me more problems.
> In fact, it seems that docutils changed the defaults
> in the snapshot and sets 'stylesheet_path' now itself,
> making the previously valid passing of a 'stylesheet'
> parameter suddenly invalid.
>
> I just tweaked the invocation in py/misc/rest.py to explicitely
> pass 'stylesheet_path' as None to docutils. This should fix
> your problem.
Thank you very much!
ciao - chris
--
Christian Tismer :^) <mailto:tismer at stackless.com>
tismerysoft GmbH : Have a break! Take a ride on Python's
Johannes-Niemeyer-Weg 9A : *Starship* http://starship.python.net/
14109 Berlin : PGP key -> http://wwwkeys.pgp.net/
work +49 30 802 86 56 mobile +49 173 24 18 776 fax +49 30 80 90 57 05
PGP 0x57F3BF04 9064 F4E1 D754 C2FF 1619 305B C09C 5A3B 57F3 BF04
whom do you want to sponsor today? http://www.stackless.com/
More information about the Pypy-dev
mailing list