[Zope] How do I export objects with the change history

Jay, Dylan djay@avaya.com
Thu, 21 Jun 2001 11:28:54 +1000


> -----Original Message-----
> From: Dieter Maurer [mailto:dieter@handshake.de]
> Sent: Thursday, 21 June 2001 3:11 AM
> To: Jay, Dylan
> Cc: 'zope@zope.org'
> Subject: Re: [Zope] How do I export objects with the change history
> 
> 
> Jay, Dylan writes:
>  > I have a wikiweb that has all the change history since its 
> inception
>  > available to users. I want to export this to a new Zope 
> installation without
>  > losing this information. How do I do this?
> Not sure, whether you can follow this line. But it would probably
> be the easiest way:
> 
>    You start with your old "Data.fs" in the new side and there,
>    you delete everything you do not like.

No can do. I have some sort of corruption in the ODB that becomes apparent
when I try upgrading (see trace below). On top of this I don't want to drag
around the history of everything else in the ZODB. How hard would a
selective pack operation be? ie pack everything but one folder

 
> An alternative may be an external Python script
> that uses XML-RPC to fetch the versions of an object
> in the source Zope and create/update them in the destination
> Zope. It would need an External Method in the destination
> to tweak modification time and friends.
> Not too easy...

hmm, sounds complicated. Actually sounds like ZODBReplication or
synchronization. Can you outline in a little more detail how you would do
this? How do you tweak the modification time etc?


---------------

http://azonia.auslabs.avaya.com:9080/manage_main 

gives

<p>
 Error type:  SystemError<br>
 Error value: Failed to import class Guard from module
Products.PythonMethod.zbytecodehacks.VSExec
</p>

<p><a href="http://www.zope.org/Credits" target="_top"><img
src="http://azonia.auslabs.avaya.com:9080/p_/ZopeButton" width="115"
height="50" border="0" alt="Powered by Zope" /></a></p>
</BODY></HTML>
<PRE>
Traceback (innermost last):
  File D:\Zope\AUSLAB~1\lib\python\ZPublisher\Publish.py, line 223, in
publish_module
  File D:\Zope\AUSLAB~1\lib\python\ZPublisher\Publish.py, line 187, in
publish
  File D:\Zope\AUSLAB~1\lib\python\Zope\__init__.py, line 221, in
zpublisher_exception_hook
    (Object: ApplicationDefaultPermissions)
  File D:\Zope\AUSLAB~1\lib\python\ZPublisher\Publish.py, line 171, in
publish
  File D:\Zope\AUSLAB~1\lib\python\ZPublisher\mapply.py, line 160, in mapply
    (Object: manage_main)
  File D:\Zope\AUSLAB~1\lib\python\ZPublisher\Publish.py, line 112, in
call_object
    (Object: manage_main)
  File D:\Zope\AUSLAB~1\lib\python\Shared\DC\Scripts\Bindings.py, line 324,
in __call__
    (Object: manage_main)
  File D:\Zope\AUSLAB~1\lib\python\Shared\DC\Scripts\Bindings.py, line 354,
in _bindAndExec
    (Object: manage_main)
  File D:\Zope\AUSLAB~1\lib\python\App\special_dtml.py, line 236, in _exec
    (Object: manage_main)
  File D:\Zope\AUSLAB~1\lib\python\DocumentTemplate\DT_In.py, line 670, in
renderwob
    (Object: objectItems)
  File D:\Zope\AUSLAB~1\lib\python\DocumentTemplate\DT_In.py, line 765, in
sort_sequence
    (Object: objectItems)
  File D:\Zope\AUSLAB~1\lib\python\ZODB\Connection.py, line 533, in setstate
SystemError: (see above)