[Zope] Using filesystem Python Scripts
Stacy Roberts Ladnier
Stacy.Roberts@noaa.gov
Fri, 24 Jan 2003 10:49:13 -0600
This is a multi-part message in MIME format.
--------------0200576FA9EF9C6820290816
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
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
--------------0200576FA9EF9C6820290816
Content-Type: text/x-vcard; charset=us-ascii;
name="Stacy.Ladnier.vcf"
Content-Transfer-Encoding: 7bit
Content-Description: Card for Stacy Ladnier
Content-Disposition: attachment;
filename="Stacy.Ladnier.vcf"
begin:vcard
n:Ladnier;Stacy
tel;work:228-688-1878
x-mozilla-html:FALSE
org:Anteon/NCDDC
adr:;;;Stennis Space Center;MS;;
version:2.1
email;internet:Stacy.Ladnier@noaa.gov
title:Software Engineer
fn:Stacy Ladnier, SCJP2, SCJD2
end:vcard
--------------0200576FA9EF9C6820290816--