[Zope-Checkins] SVN: Zope/trunk/lib/python/reStructuredText/__init__.py changed default value for 'stylesheet' from 'default.css' to None

Andreas Jung andreas at andreas-jung.com
Mon Mar 13 08:50:41 EST 2006


Log message for revision 65942:
  changed default value for 'stylesheet' from 'default.css' to None
  to avoid trouble with docutils 0.4.0 (trying to read the file
  from the filesystem)
  

Changed:
  U   Zope/trunk/lib/python/reStructuredText/__init__.py

-=-
Modified: Zope/trunk/lib/python/reStructuredText/__init__.py
===================================================================
--- Zope/trunk/lib/python/reStructuredText/__init__.py	2006-03-13 13:42:57 UTC (rev 65941)
+++ Zope/trunk/lib/python/reStructuredText/__init__.py	2006-03-13 13:50:41 UTC (rev 65942)
@@ -58,7 +58,7 @@
 def render(src,
            writer='html4css1',
            report_level=1,
-           stylesheet='default.css',
+           stylesheet=None,
            input_encoding=default_input_encoding,
            output_encoding=default_output_encoding,
            language_code=default_language_code,
@@ -71,6 +71,7 @@
     settings['input_encoding'] = input_encoding
     settings['output_encoding'] = output_encoding
     settings['stylesheet'] = stylesheet
+    settings['stylesheet_path'] = None
     settings['file_insertion_enabled'] = 0
     if language_code:
         settings['language_code'] = language_code
@@ -93,7 +94,7 @@
 def HTML(src,
          writer='html4css1',
          report_level=1,
-         stylesheet='default.css',
+         stylesheet=None,
          input_encoding=default_input_encoding,
          output_encoding=default_output_encoding,
          language_code=default_language_code,



More information about the Zope-Checkins mailing list