[Zope-Checkins] CVS: Zope/lib/python/Zope/Startup -
handlers.py:1.6.2.8.6.1 zopeschema.xml:1.7.2.10.6.1
Christian 'Tiran' Heimes
heimes at faho.rwth-aachen.de
Sat Apr 24 19:00:18 EDT 2004
Update of /cvs-repository/Zope/lib/python/Zope/Startup
In directory cvs.zope.org:/tmp/cvs-serv25228/lib/python/Zope/Startup
Modified Files:
Tag: tiran-restfixing-branch
handlers.py zopeschema.xml
Log Message:
Added rest-header-level configuration option
Changed rest HTML parser to use less ugly tricks
=== Zope/lib/python/Zope/Startup/handlers.py 1.6.2.8 => 1.6.2.8.6.1 ===
--- Zope/lib/python/Zope/Startup/handlers.py:1.6.2.8 Thu Jan 8 18:34:05 2004
+++ Zope/lib/python/Zope/Startup/handlers.py Sat Apr 24 18:59:47 2004
@@ -89,6 +89,10 @@
value and _setenv('REST_OUTPUT_ENCODING' , value)
return value
+def rest_header_level(value):
+ value and _setenv('REST_DEFAULT_LEVEL' , value)
+ return value
+
def publisher_profile_file(value):
value is not None and _setenv('PROFILE_PUBLISHER', value)
from ZPublisher.Publish import install_profiling
=== Zope/lib/python/Zope/Startup/zopeschema.xml 1.7.2.10 => 1.7.2.10.6.1 ===
--- Zope/lib/python/Zope/Startup/zopeschema.xml:1.7.2.10 Thu Jan 8 18:34:05 2004
+++ Zope/lib/python/Zope/Startup/zopeschema.xml Sat Apr 24 18:59:47 2004
@@ -448,6 +448,16 @@
<metadefault>unset</metadefault>
</key>
+ <key name="rest-header-level" datatype="integer" default="3"
+ handler="rest_header_level">
+ <description>
+ Set the default starting HTML header level for restructured text
+ documents. The default is 3, which implies that top-level headers
+ will be created with an H3 HTML tag.
+ </description>
+ <metadefault>3</metadefault>
+ </key>
+
<key name="publisher-profile-file" handler="publisher_profile_file">
<description>
Causing this directive to point to a file on the filesystem will
More information about the Zope-Checkins
mailing list