[Zope] Copy file in filesystem

Gitte Wange gitte@mmmanager.org
Thu, 26 Jul 2001 16:32:23 +0200


On Thursday 26 July 2001 16:29, you wrote:
> --- Gitte Wange <gitte@mmmanager.org> wrote:
> ...
>
> > I have tried with this:
> > import copy
> >
> > <a lot of code>
> > copy(file_reposit, new_fnreposit)
> > </a lot of code>
> >
> > I get this error:
> >
> > Zope Error
> >
> > Zope has encountered an error while publishing this resource.
> >
> > Error Type: TypeError
> > Error Value: call of non-function (type module)
> >
> > If I don't use the import copy Zope just returns an error saying that
> > copy isn't defined.
> >
> > How do I then make a copy of a file ???
>
> is this an external method? wonder if copy is allowed in Python Script!
> hmm...


no no no :-))

This script is placed in the filesystem and no - it isn't an external method. 
It's a module in a Zope Product.

Gitte