[Zope] Using an external method into another external method
Josef Meile
jmeile@hotmail.com
Thu, 5 Sep 2002 23:49:01 +0200
Let's say I have two external methods (foo1 and foo2) in two different files
(myFile1
and myFile2 respectively) on my Extensions folder. I would like to import
foo1 into
the myFile2 where foo2 is.
I have tried:
from myFile2 import foo2
from Extensions.myFile2 import foo2
but it doesn't work. It says that Either myFile2 or Extensions doesn't
exist.
I don't want to put them in the same file because foo1 is called several
times
inside myFile1 and foo2 is called several times in myFile2. So, I would have
to join both files into one and it wouldn't be an elegant solution.
Does anybody have any idea?
Thanks in advanced,
Josef.