[Zope] Import Problems - What am I doing wrong?

Dieter Maurer dieter at handshake.de
Sat Sep 11 15:15:16 EDT 2004


Bill Hewitt wrote at 2004-9-10 19:45 -0700:
>I have two Python Products, Virtual_site and Virtual_Misc in the
>lib/python/Products directory....
>
>In Virtual_Site,  I have a Python module called Campus and inside it, I
>have a Class called Campus.....
>
>In Virtual_Misc, I have a Python module called Misc and inside it, I
>have a Class called Misc and several methods..... 
>
>I have been trying to import the methods from Virtual_Misc.Misc into
>Virtual_Site.Campus - but everytime I try to import I get an error....

Which one? How do you import?

I do this routinely:

  from Products.MyProduct.MyModule import MyClass

It works fine.

-- 
Dieter


More information about the Zope mailing list