[Zope] How to Add a File Dynamically??---manage_clone-ERROR
Dieter Maurer
dieter@handshake.de
Wed, 21 May 2003 20:34:58 +0200
Please adjust your "Subject" when you get a new problem...
Zope@Stylus wrote at 2003-5-20 22:25 +0530:
> ...
> import CopyContainer
> ...
> ============================================================
> #This is the Error I get on trying to add a Clone
>
> Error Type: ImportError
> Error Value: No module named CopyContainer
You might want to read how Python searches for modules
and how Python packages work (--> Python Language Reference manual).
"import CopyContainer" searches the current package for the
module "CopyContainer" and then the directories listed in
"sys.path" (initialized from "PYTHONPATH" and some default
directories).
Now, "CopyContainer" is not a module at all but a class
defined in "OFS.CopySupport".
You would access it via
from OFS.CopySupport import CopyContainer
Dieter
PS: Your chances (to get responses) are better when you
use one message for one problem with a concise problem
description.