[Zope] StructuredDocument PUT_factory problem
Dieter Maurer
dieter@handshake.de
Wed, 21 Aug 2002 20:48:05 +0200
John Hunter writes:
> ...
> if typ == 'text/plain' or typ=='text/html':
> try:
> ob = StructuredDocument( body, __name__=name )
> except:
> h.write('Could not create STX')
> ob = None
> return ob
> return None
> ...
> Output:
> ...
> Could not create STX
Look at Python's "traceback" module (--> Python Library Reference).
It contains the function "print_exc" that allows you to format the exception
and put the result into a file.
This will tell you the cause of the problem.
Dieter