Problem with StructuredText and expandtabs
Not being sure where to send this.... here it is. I am trying to use StructuredText outside Zope. I can import it fine, but when I try to use it I get: ======================================
st=StructuredText.Basic(raw) Traceback (most recent call last): File "<stdin>", line 1, in ? File "ST.py", line 113, in StructuredText paragraphs = expandtabs(paragraphs) File "/usr/lib/python2.1/string.py", line 295, in expandtabs return s.expandtabs(tabsize) AttributeError: expandtabs ======================================
I get this on Python 2.1, using the StructuredText from Zope 2.4.0. I have done this on two separate systems now. If anyone has any ideas or workarounds, I'd appreciate it. Also, if anyone can test it against a python 1.5 system, that may be helpful (I've migrated to 2.1 ... pn all available machines). Bill Anderson
Bill Anderson writes:
I am trying to use StructuredText outside Zope. I can import it fine, but when I try to use it I get:
======================================
st=StructuredText.Basic(raw) Traceback (most recent call last): File "<stdin>", line 1, in ? File "ST.py", line 113, in StructuredText paragraphs = expandtabs(paragraphs) File "/usr/lib/python2.1/string.py", line 295, in expandtabs return s.expandtabs(tabsize) AttributeError: expandtabs Apparently, your "s" is not a string...
Dieter
On 07 Aug 2001 19:29:36 +0200, Dieter Maurer wrote:
Bill Anderson writes:
I am trying to use StructuredText outside Zope. I can import it fine, but when I try to use it I get:
======================================
st=StructuredText.Basic(raw) Traceback (most recent call last): File "<stdin>", line 1, in ? File "ST.py", line 113, in StructuredText paragraphs = expandtabs(paragraphs) File "/usr/lib/python2.1/string.py", line 295, in expandtabs return s.expandtabs(tabsize) AttributeError: expandtabs Apparently, your "s" is not a string...
That is what I was concluding, the question is, Why not? I took my structured text file from a zope (CMF) document from the same machine, where it works fine. The issue _seems_ to me to be that it works fine from withni Zope, but not from without. Same Zope machine, same Zope code, same structured text. :( Bill
participants (2)
-
Bill Anderson -
Dieter Maurer