Ryan Smith wrote:
I have a seperate .py file that contains a set of modules I am using.  I have
imported these modules without a problem in my PAS Plugin, and my modified
version of CMFPlone/CatalogTool.py.   I also want to use these modules in an
archetype product I am creating, however I am having trouble importing.  Is
there something that would make this product different?

This is the line causing me problems
from Products.MyFolder.MyFile import myModule
Usually modules are files in python, so this looks strange.
Maybe it should read
from Products.MyFolder.MyModule import myClass?

Markus


This gives the following error message -
ImportError: cannot import name myModule

Like I said, this is only a problem in this product.  Any suggestions would
be a great help.

_______________________________________________
Product-Developers mailing list
[email protected]
http://lists.plone.org/mailman/listinfo/product-developers

Reply via email to