[Zope-CMF] copy/paste Folders

Florent Guillaume fg@nuxeo.com
Wed, 12 Jun 2002 18:23:53 +0000 (UTC)


George Stroussopoulos  <strusos@yahoo.com> wrote:
>     def _getCopy(self, container):
>         # Ask an object for a new copy of itself.
>         f=tempfile.TemporaryFile()
>         self._p_jar.exportFile(self._p_oid,f)
>         f.seek(0)
>         ob=container._p_jar.importFile(f)
>         f.close()
>         return ob

Wow, I didn't know that code used a temporary file...
Maybe you have disk space problems in /tmp, and your second Folder
is big ?

Otherwise I don't see why the behavior would be different.

Florent
-- 
Florent Guillaume, Nuxeo (Paris, France)
+33 1 40 33 79 87  http://nuxeo.com  mailto:fg@nuxeo.com