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.fs mounted 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