Hi all, Can someone has or can post a program to dump the contents of the Data.fs file on screen or to a text file? Do you think is advisable to use the python/zope examples to try to figure it out? The reason is that we would like to maintain the file programatically. Thanks in advance,
Grakka wrote:
Hi all,
Can someone has or can post a program to dump the contents of the Data.fs file on screen or to a text file?
Just export the root folder to XML.
Do you think is advisable to use the python/zope examples to try to figure it out?
eh?
The reason is that we would like to maintain the file programatically.
I don't know what 'maintain the file programatically' means. Do you mean store it under revision control like with rcs/cvs? -Michel
If you use the Export... button or Import/Export tab, you can export objects as XML. I don't think you can export the root of the ZODB this way, however. Kevin ----- Original Message ----- From: "Grakka" <jflores@codeit.com> To: "Zope-dev Mailing List" <zope-dev@zope.org> Sent: Tuesday, April 11, 2000 8:27 PM Subject: [Zope-dev] ZODB Dump program
Can someone has or can post a program to dump the contents of the Data.fs file on screen or to a text file? Do you think is advisable to use the python/zope examples to try to figure it out?
The reason is that we would like to maintain the file programatically.
Thank you for the quick response, actually the XML source really works. However.. What I want to do, is compare two zope DB against each other, the purpose is to generate a "third" DB with the most recent information of each two, you see where I am going? Using Versions is not an option, since the version records are "locked" and only one person can use them anyway. Now my only question would be, is there a way to know in the xml output which object is newer? I do not see date/times anywhere, but since the DB contains that info, I guess that by modifying the export to xml program can give what I need.. Any suggestions are really appreciated. Thanks in advance, Kevin Dangoor wrote:
If you use the Export... button or Import/Export tab, you can export objects as XML. I don't think you can export the root of the ZODB this way, however.
Kevin
----- Original Message ----- From: "Grakka" <jflores@codeit.com> To: "Zope-dev Mailing List" <zope-dev@zope.org> Sent: Tuesday, April 11, 2000 8:27 PM Subject: [Zope-dev] ZODB Dump program
Can someone has or can post a program to dump the contents of the Data.fs file on screen or to a text file? Do you think is advisable to use the python/zope examples to try to figure it out?
The reason is that we would like to maintain the file programatically.
Grakka wrote:
What I want to do, is compare two zope DB against each other, the purpose is to generate a "third" DB with the most recent information of each two, you see where I am going? Using Versions is not an option, since the version records are "locked" and only one person can use them anyway.
Check out Ty Sarna' translyzer.py (it's on zope.org). -- Itamar S.T. itamars@ibm.net
participants (4)
-
Grakka -
Itamar Shtull-Trauring -
Kevin Dangoor -
Michel Pelletier