I didn't think of this - just tried it, and it worked. I'd assumed I'd screwed up installation of the PSP system, but it must be something else. I'm using Apache 2 with the wkcgi adapter.
Well, I worked out what was breaking the PSP examples - I'd installed WebWare (on Windows) in a directory with a component that started with an x (my name, in fact). So, what was going into the compiled version of the PSP servlet was:
__orig_file__ = "C:\blah\xtian\blah\WebWare\PSP\Examples\index.psp"
Which then breaks on import, since it's interpreting the \xti as an invalid hex escape sequence.
Obviously that's not going to happen very often. I was a bit unlucky to have stumbled on it, really. But the fix is simple enough.
In Webware/PSP/ParseEventHandler.py at line 277, change:
self._writer.println("__orig_file__ = '%s'" % self._ctxt.getFullPspFileName())
to
self._writer.println("__orig_file__ = %r" % self._ctxt.getFullPspFileName())
Since the repr of the string is inserted, the backslashes are escaped correctly, and as a bonus it handles files with single-quotes in their paths.
I'll submit a bug for this.
In the process of working this out, I've had a bit of a whirlwind tour, at least through WebKit, and I think it's exactly what we want.
Cheers, Christian
------------------------------------------------------- This SF.net email is sponsored by: eBay Get office equipment for less on eBay! http://adfarm.mediaplex.com/ad/ck/711-11697-6916-5 _______________________________________________ Webware-discuss mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/webware-discuss
