Hello, I want to merge two Zope instances with different Data.fs to one. First thing I tried was Export and Import the objects from one instance to the other. Problem: the dates and undo information are not preserved. Is it possible to "mount" two Data.fs and copy from one Data.fs to the other? Or how could I preserve undo and the modify date of the objects? I couldn't find anything on zope.org and in the mailing list archive. Please reply also to my private email address, because I cannot read the mailing list today. -- GMX - Die Kommunikationsplattform im Internet. http://www.gmx.net
Check the MountedStorage or MountedFileStorage products (on zope.org). -aj ----- Original Message ----- From: <smoerk@gmx.de> To: <zope@zope.org> Sent: Monday, August 12, 2002 16:47 Subject: [Zope] merge two ZODB
Hello,
I want to merge two Zope instances with different Data.fs to one. First thing I tried was Export and Import the objects from one instance to the other. Problem: the dates and undo information are not preserved.
Is it possible to "mount" two Data.fs and copy from one Data.fs to the other? Or how could I preserve undo and the modify date of the objects? I couldn't find anything on zope.org and in the mailing list archive.
Please reply also to my private email address, because I cannot read the mailing list today.
-- GMX - Die Kommunikationsplattform im Internet. http://www.gmx.net
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
I didn't try MpuntedStorage, because it requires ZEO. MountedFileStorage doesn't work with my Zope 2.5.1. I get the following error: Zope Error Zope has encountered an error while publishing this resource. Error Type: You can only provide an id when creating! Error Value: None <!-- Traceback (innermost last): File /usr/lib/zope/lib/python/ZPublisher/Publish.py, line 150, in publish_module File /usr/lib/zope/lib/python/ZPublisher/Publish.py, line 114, in publish File /usr/lib/zope/lib/python/Zope/__init__.py, line 159, in zpublisher_exception_hook File /usr/lib/zope/lib/python/ZPublisher/Publish.py, line 98, in publish File /usr/lib/zope/lib/python/ZPublisher/mapply.py, line 88, in mapply (Object: manage_addMountedFileStorage) File /usr/lib/zope/lib/python/ZPublisher/Publish.py, line 39, in call_object (Object: manage_addMountedFileStorage) File /usr/lib/zope/lib/python/Products/MountedFileStorage/MountedFileStorage.py, line 27, in manage_addMountedFileStorage File /usr/lib/zope/lib/python/Products/MountedFileStorage/MountedFileStorage.py, line 57, in __init__ (Object: ) You can only provide an id when creating!: (see above) -->
Check the MountedStorage or MountedFileStorage products (on zope.org).
----- Original Message ----- From: <smoerk@gmx.de> To: <zope@zope.org> Sent: Monday, August 12, 2002 16:47 Subject: [Zope] merge two ZODB
Hello,
I want to merge two Zope instances with different Data.fs to one. First thing I tried was Export and Import the objects from one instance to the other. Problem: the dates and undo information are not preserved.
Is it possible to "mount" two Data.fs and copy from one Data.fs to the other? Or how could I preserve undo and the modify date of the objects?
-- GMX - Die Kommunikationsplattform im Internet. http://www.gmx.net
On Monday 12 Aug 2002 3:47 pm, smoerk@gmx.de wrote:
I want to merge two Zope instances with different Data.fs to one. First thing I tried was Export and Import the objects from one instance to the other. Problem: the dates and undo information are not preserved.
Is it possible to "mount" two Data.fs
yes....
and copy from one Data.fs to the other?
...but that would update the timestamps and destroy the undo log, just like export.
Or how could I preserve undo and the modify date of the objects?
Thats not going to be possible without some hacking. Your two databases likely have conflicting oids (object ids are only unique within the database). You would need to write some code to reassign oids, and interleave transactions.
I couldn't find anything on zope.org and in the mailing list archive.
participants (3)
-
Andreas Jung -
smoerk@gmx.de -
Toby Dickenson