Their loss, I suppose.
They want to it because zope has become very very slow.
If you're looking to capture the logic of the site, the best answer I can give is to use wget to grab the HTML and recreate the logic from scratch. You're re-doing this in PHP anyway, the logic is bound to be different and if you don't know DTML or ZPT well, it won't help you much to have the original code.
I have code I have everything. Site is working in zope on my development system. I have tried everything I could find information about. They want to create exact copy of that already working system in php. Main problem is exporting original data. They can't loose it.
The challenge is not *just* that Zope stores objects, but that these objects exist to produce dynamic content. "Exporting" your content would mean either taking a "snapshot" of what the site looks like at a given moment or recreating the dynamism of the site in another medium.
Yes that is what I want, a snapshot. I am working on windows system. What is wget? What does it do? Will it work on Windows. Question is how do I know which objects store data and how many fields (attributes) are there and their data types etc. in each of those objects. And then how to extract data?
--Sukhwinder Singh ----- Original Message ----- From: "Dylan Reinhardt" <zope@dylanreinhardt.com> To: "Sukhwinder Singh" <ssruprai@hotmail.com> Cc: <zope@zope.org> Sent: Saturday, June 28, 2003 4:36 AM Subject: Re: [Zope] Exporting zodb data (Urgent)
On Fri, 2003-06-27 at 08:58, Sukhwinder Singh wrote:
Now client wants to write this application using php/mysql.
Their loss, I suppose.
Zodb uses fileStorage to store data. I have tried zope's xml export but that doesn't make any sense to me.
Yeah... that's not what it's for.
The challenge is not *just* that Zope stores objects, but that these objects exist to produce dynamic content. "Exporting" your content would mean either taking a "snapshot" of what the site looks like at a given moment or recreating the dynamism of the site in another medium.
If you just want a snapshot of the site, that's simple... open a CLI on the host machine and type:
$ wget -r http://localhost:8080
Easy as pie.
If you're looking to capture the logic of the site, the best answer I can give is to use wget to grab the HTML and recreate the logic from scratch. You're re-doing this in PHP anyway, the logic is bound to be different and if you don't know DTML or ZPT well, it won't help you much to have the original code.
But if you must, you *can* extract the code behind objects by browsing them in the Zope Management Interface. Depending on how big a system this is, you may find it handy to script Zope using Python.
Best of luck,
Dylan