On Friday 20 July 2001 16:56, you wrote:
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.
I solved by creating a seperat python script that calls the update functions on the object .... Now all I need is to find out how to upload a file. Regards, -- Gitte Wange Jensen Sys Admin, Developer and a lot more MMmanager.org Aps, Denmark Phone: +45 29 72 79 72 Email: gitte@mmmanager.org Web: www.mmmanager.org Quote of the day: Livet er svært, men frygt ej - matematik er sværere. - Storm P.