Problem with current ReST snapshot

Hi Holger, while struggling with templates and OOo, I encountered a problem when I tried toswitch to the recent docutils snapshot. There seems to be some problem with mutually exclusive parameters. I tried to track this down by reading the py library, but I have to admit that I could not find the source of the problem in reasonable time, because the related py modules have small or no documentation how they gather their configuration and how they process the input. def get_stylesheet_reference(settings, relative_to=None): """ Retrieve a stylesheet reference from the settings object. """ if settings.stylesheet_path: assert not settings.stylesheet, \ E 'stylesheet and stylesheet_path are mutually exclusive.'
AssertionError: stylesheet and stylesheet_path are
mutually e xclusive. [D:\Python23\Lib\site-packages\docutils\utils.py:433] _______________________________________________________________________________ ====== tests finished: 212 passed, 9 failed, 14 skipped in 3.31 seconds ======= I hope this makes some sense for you. cheers -- chris -- Christian Tismer :^) <mailto:tismer@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/

Hi Christian! 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 toswitch 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, 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. 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. cheers, holger

Hi Holger,
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]
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.
Thank you very much! ciao - chris -- Christian Tismer :^) <mailto:tismer@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/

Hi Christian! 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 toswitch 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, 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. 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. cheers, holger

Hi Holger,
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]
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.
Thank you very much! ciao - chris -- Christian Tismer :^) <mailto:tismer@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/
participants (2)
-
Christian Tismer
-
holger krekel