Nope that does not work. 'scripts' is a folder on the filesystem that contains my script. I have tried your suggestion and the error is now a KeyError on scripts with the following traceback: Traceback (innermost last): Module ZPublisher.Publish, line 98, in publish Module ZPublisher.mapply, line 88, in mapply Module ZPublisher.Publish, line 39, in call_object Module Shared.DC.Scripts.Bindings, line 252, in __call__ Module Shared.DC.Scripts.Bindings, line 283, in _bindAndExec Module App.special_dtml, line 174, in _exec Module DocumentTemplate.DT_With, line 60, in render KeyError: scripts Andy McKay wrote:
I try to execute the script, processProperties, from inside manage_propertiesForm.dtml. Right now, I am using a simple <dtml-var "processProperties"> call. However, I get a NameError saying that processProperties is not defined. Here is my traceback:
You have to have scripts in the namespace. Do a <dtml-with scripts><dtml-var...></dtml-with>. If you've used the CMF it uses portal skins to mangle the path a bit so they are all on the same "level" -- Andy McKay