cut&paste from one mounted storage to another
Hi! Is there a possibility to cut&paste from one mounted storage to another? I have a filestorage Data.fs mounted as / and another filestorage Archive.fsmounted at /site/Archive. When I try to cut&paste an object from e.g. /site/foo/bar to /site/Archive/bar I get an InvalidObjectReference Exception: File "/opt/Zope-2.8.1/lib/python/ZODB/Connection.py", line 503, in _commit self._store_objects(ObjectWriter(obj), transaction) File "/opt/Zope-2.8.1/lib/python/ZODB/Connection.py", line 525, in _store_objects p = writer.serialize(obj) # This calls __getstate__ of obj File "/opt/Zope-2.8.1/lib/python/ZODB/serialize.py", line 330, in serialize return self._dump(meta, obj.__getstate__()) File "/opt/Zope-2.8.1/lib/python/ZODB/serialize.py", line 339, in _dump self._p.dump(state) File "/opt/Zope-2.8.1/lib/python/ZODB/serialize.py", line 281, in persistent_id raise InvalidObjectReference( InvalidObjectReference: Attempt to store an object from a foreign database connection Am I doing something wrong or is this simply not possibly resp. is there a workaround to do a cut&paste between storage boundaries? Thanks. -- mkrainer
M. Krainer wrote:
Am I doing something wrong or is this simply not possibly resp. is there a workaround to do a cut&paste between storage boundaries?
It's not reall a supported operation. I wonder if the multidatabase work currently being done on ZODB will help with this? I'd ask on zodb-dev@zope.org if you can... cheers, Chris -- Simplistix - Content Management, Zope & Python Consulting - http://www.simplistix.co.uk
M. Krainer wrote at 2005-9-30 12:10 +0200:
Is there a possibility to cut&paste from one mounted storage to another?
There is no direct possibility -- but you can emulate "cut&paste" by "copy&paste&delete". -- Dieter
participants (3)
-
Chris Withers -
Dieter Maurer -
M. Krainer