[Zope] RestructuredText Backport 1.04 optparse Difficulties

Steve McMahon steve at dcn.org
Sat Dec 13 13:27:45 EST 2003


I've had some difficulties with the RestructuredText backport for Zope 
2.6x v1.04 under Zope 2.6.2, Python 2.1.3.

First, it installs at lib/python a copy of optparse.py that tries to 
import optik. optik.py, though, is in the docutils subdirectory, and 
invisible. Moving optparse.py to docutils solves that problem.

Then, trying to render a structured text page produces the error 
"AttributeError: 'docutils.optparse' module has no attribute 
'TitledHelpFormatter'". Indeed, the version of optik.py included with 
the backport lacks TitledHelpFormatter.

Can I just go find another version of optik.py that has the function? 
Or, will that fail under python 2.1.3?

By the way, the files in the backport tar are readable only by owner. 
Naively following the instructions "To install the package you need to 
unpack the archive in the top-level folder of your Zope installation," 
will result in a dead Zope. Either the tar or instructions need fixing.

Thanks!





More information about the Zope mailing list