Ian, you were right, the sys.path fix is needed in order for the cgitb 
stuff to work using OneShot.  That must have been the difference -- you 
were using OneShot and I was using ThreadedAppServer which does NOT need 
the sys.path fixes.  I think that's also why I couldn't get your 
modifications to cgitb to work properly earlier today -- I must have tried 
them using OneShot.  Whoops.

So I've checked in the files from your patch with minor modifications.  I 
do like your changes to cgitb.py.  I still think the fancy traceback is 
overkill for most errors, so I left it the way I had set it up before with 
the ordinary traceback at the top and the fancy traceback at the 
bottom.  Ultimately, Chuck is right -- this should be specified via a 
template file.  I don't really feel like spending any more time on this at 
the moment, though :-)

It will import pydoc.py from Python 2.1 if available, otherwise it'll use 
the one in MiscUtils.

I also left the configuration the way I had originally set it up, with the 
"IncludeFancyTraceback" and "FancyTracebackContext" settings.

Sorry it took so long to get your patch into Webware.


--

- Geoff Talvola
   [EMAIL PROTECTED]

_______________________________________________
Webware-discuss mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/webware-discuss

Reply via email to