23 Apr
2004
23 Apr
'04
11:20 a.m.
From: "Ashley Lloyd" <ashleylloyd@hotmail.com>
I have a folder structure, say, like this
root - pdf - web - pdf
I am in a dtml-method in the web folder, and want to access a python script in the root/pdf folder. I tried initially: <dtml-call "REQUEST.set('varName',pdf.scriptName(args))"> I get an Attribute Error with value scriptName. (scriptName does not exist in the web/pdf folder)
Try: <dtml-with root> <dtml-with pdf> <dtml-call "REQUEST.set('varName',scriptName(args))"> </dtml-with> </dtml-with> or <dtml-with "restrictedTraverse('root/pdf')"> <dtml-call "REQUEST.set('varName',scriptName(args))"> </dtml-with> HTH Jonathan