[Zope] This is weird
Casey Duncan
cduncan@kaivo.com
Fri, 20 Jul 2001 08:56:39 -0600
Gitte Wange wrote:
>
> I hope there is someone out there who can help me, because I think I'm going
> crazy here :-)))
>
> First I got a lot of errors calling a method of an object in a python module.
> Well I thought, I'll just create a python script in my folder in ZMI and call
> that instead. This script will then call the method of the object.
>
> The python script is called clip_edit and is placed in the same folder as the
> script calling the edit_clip script .. (hope you are not confused *S*)
>
> But I get this error:
> NameError: clip_edit
>
> But they are placed in the same folder !!!
>
> Here's the code that calls the python script:
> <dtml-if expr="MasterFile != ''">
> <dtml-call "clip_edit(MasterFile=MasterFile)">
> </dtml-if>
>
> Anything wrong there ???
>
> Regards,
>
> --
> Gitte Wange Jensen
>
How exactly are you calling edit_clip? My guess is that you are not
passing the namespace to it.
--
| Casey Duncan
| Kaivo, Inc.
| cduncan@kaivo.com
`------------------>