during trying out your great Webware framework,
I found that the PSPDocs.psp sample and others doesn't work.
The error message is, that the include file 'e:\011tools\python20....' can
not be found.
I located the code where the cached psp page is being generated and did
I could not fix this by generating some other code.
The only way I could fix that was to modify the code in generators.py.
I first take the file with the complete path and normalize it with the
That alone does not help.
I have to replace all backslash characters in the path to forward slashes,
before calling the ScriptGenerate function.
This seems to help.
""" Include files designated by the psp:include syntax.
If the attribute static is set to true or 1, we include the file now, at compile time.
Otherwise, we use a function added to every PSP page name __includeFile, which reads the file at run time.
def __init__(self, attrs, param, ctxt):
if not os.path.exists(thepath):
raise "Invalid included file",thepath
if not self.static:
>> thepath = string.replace(thepath,'\\','/')
self.scriptgen = ScriptGenerator("self.__includeFile(\"%s\")" % thepath, None)
I guess this is in the responsibility of my python interpreter, but I do
not know exactly.
I am using the ActiveState Python Implementation 202, so Python 2.0 on
Windows 2000 with the Apache Webserver 1.3.1x together with the modpython
Any idea what can I do else, without modifying your code.
What version of Webware, please?
At 09:37 AM 5/4/2001 +0200, lars.dahlke@... wrote:
>during trying out your great Webware framework,
>I found that the PSPDocs.psp sample and others doesn't work.
>The error message is, that the include file 'e:\011tools\python20....' can
>not be found.