[Zope] cut&paste from one mounted storage to another

M. Krainer mkrainer05 at gmail.com
Fri Sep 30 06:10:45 EDT 2005


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.zope.org/pipermail/zope/attachments/20050930/e0db1e07/attachment.htm


More information about the Zope mailing list