[Zope] Using an external method into another external method

Andy McKay andy@agmweb.ca
Thu, 5 Sep 2002 15:03:43 -0700


If you must do this put an empty file called __init__.py in the Extensions
folder (you might need to restart).
--
  Andy McKay
  Agmweb Consulting
  http://www.agmweb.ca


----- Original Message -----
From: "Josef Meile" <jmeile@hotmail.com>
To: <zope@zope.org>
Sent: Thursday, September 05, 2002 2:49 PM
Subject: [Zope] Using an external method into another external method


> 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.
>
> _______________________________________________
> Zope maillist  -  Zope@zope.org
> http://lists.zope.org/mailman/listinfo/zope
> **   No cross posts or HTML encoding!  **
> (Related lists -
>  http://lists.zope.org/mailman/listinfo/zope-announce
>  http://lists.zope.org/mailman/listinfo/zope-dev )
>