I'm new to Zope, and decided to play around with it at home for a few hours. I built up a small site, and decided to export it out, and mail it to myself in work, where I uploaded it to a Zope server there. When exporting, I clicked on 'import/export' in the root folder, I didn't give an export object id (assuming it would just choose /) and clicked 'Export'. I got a 2MB file (big, considering I'd typed in maybe 5k of HTML and 100k of images). I imported that into the Zope server in work. It seemed to be OK, only that it created a folder called 'Zope' and stuck it in there. I decided to try move the folders & DTML documents from /Zope to /, with cut & paste, but I kept getting errors like: " One or more items referred to in the clipboard data was not found. The item may have been moved or deleted after you copied it. " Also, I noticed that I had been using a gadfly database - the import did not create a /var/zope/var/gadfly directory at all, so any time I tryed to access those methods, it was throwing me errors ! Have I done something incorrectly ? Or does the import/export functionality not work in 2.5.x ? John -- _______________________________________ John Looney Chief Scientist a n t e f a c t o t: +353 1 8586004 www.antefacto.com f: +353 1 8586014
when you use export/import you should ensure that the zope install on the receiving end has all the same products installed. importing does not make any changes to the file system, so if you have anything on the old server filesystem that the site depends on you must copy that to the new server separately if it does not already exist there. jens On Monday, June 10, 2002, at 06:20 , John P. Looney wrote:
I'm new to Zope, and decided to play around with it at home for a few hours. I built up a small site, and decided to export it out, and mail it to myself in work, where I uploaded it to a Zope server there.
When exporting, I clicked on 'import/export' in the root folder, I didn' t give an export object id (assuming it would just choose /) and clicked 'Export'.
I got a 2MB file (big, considering I'd typed in maybe 5k of HTML and 100k of images). I imported that into the Zope server in work. It seemed to be OK, only that it created a folder called 'Zope' and stuck it in there. I decided to try move the folders & DTML documents from /Zope to /, with cut & paste, but I kept getting errors like:
" One or more items referred to in the clipboard data was not found. The item may have been moved or deleted after you copied it. "
Also, I noticed that I had been using a gadfly database - the import did not create a /var/zope/var/gadfly directory at all, so any time I tryed to access those methods, it was throwing me errors !
Have I done something incorrectly ? Or does the import/export functionality not work in 2.5.x ?
John
-- _______________________________________ John Looney Chief Scientist a n t e f a c t o t: +353 1 8586004 www.antefacto.com f: +353 1 8586014
_______________________________________________ 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 )
On Mon, Jun 10, 2002 at 07:44:58AM -0400, Jens Vagelpohl mentioned:
when you use export/import you should ensure that the zope install on the receiving end has all the same products installed. importing does not make any changes to the file system, so if you have anything on the old server filesystem that the site depends on you must copy that to the new server separately if it does not already exist there.
Both machines were running Zope 2.5.1 installed from RPMS. The same products were installed on both. Hmm. So, products like Gadfly won't export their databases etc ? I'll have to copy those from /var/zope/var/gadfly myself ? Assuming that everything else is equal, what would an error like; " One or more items referred to in the clipboard data was not found. The item may have been moved or deleted after you copied it. " mean ? could it be that the objects expected themselves to be in /, but were actually restored to /Zope ? John -- _______________________________________ John Looney Chief Scientist a n t e f a c t o t: +353 1 8586004 www.antefacto.com f: +353 1 8586014
like i said, you must make sure that the filesystem componentry is the same on both sides. gadlfly does not know about the zope export/import at all. you must copy all those files manually. export/import only affects data in the ZODB, it does not touch anything on the file system. synchronize those filesystem components, restart the site and see if that helps. jens On Monday, June 10, 2002, at 07:52 , John P. Looney wrote:
On Mon, Jun 10, 2002 at 07:44:58AM -0400, Jens Vagelpohl mentioned:
when you use export/import you should ensure that the zope install on the receiving end has all the same products installed. importing does not make any changes to the file system, so if you have anything on the old server filesystem that the site depends on you must copy that to the new server separately if it does not already exist there.
Both machines were running Zope 2.5.1 installed from RPMS. The same products were installed on both.
Hmm. So, products like Gadfly won't export their databases etc ? I'll have to copy those from /var/zope/var/gadfly myself ?
Assuming that everything else is equal, what would an error like;
" One or more items referred to in the clipboard data was not found. The item may have been moved or deleted after you copied it. "
mean ? could it be that the objects expected themselves to be in /, but were actually restored to /Zope ?
John
On Mon, Jun 10, 2002 at 08:24:24AM -0400, Jens Vagelpohl mentioned:
like i said, you must make sure that the filesystem componentry is the same on both sides. gadlfly does not know about the zope export/import at all. you must copy all those files manually. export/import only affects data in the ZODB, it does not touch anything on the file system.
synchronize those filesystem components, restart the site and see if that helps.
Ah, OK. That makes sense. Well, I still can't cut and paste the objects that aren't Gadfly related, like the old /index_html file. I did; imported everthing (not the gadfly filesystem stuff - that's at home) restarted zserver "copied" /Zope/index_html "pasted" into / And got a new error: "The object index_html does not support this operation" Interesting...this '/Zope' folder can't be renamed. Also, in the sidebar (where there is an explorer-style tree view), there is a blank space where the word "Zope" should be, under the control panel, to give this folder a name. I can click on the folder icon alright, but instead of bringing me to this /zope directory, it brings me to /. I'll just leave it maybe, and do the whole move myself tomorrow, copying the binary databases etc. and all manually. John -- _______________________________________ John Looney Chief Scientist a n t e f a c t o t: +353 1 8586004 www.antefacto.com f: +353 1 8586014
[John P. Looney]
I'm new to Zope, and decided to play around with it at home for a few hours. I built up a small site, and decided to export it out, and mail it to myself in work, where I uploaded it to a Zope server there.
When exporting, I clicked on 'import/export' in the root folder, I didn't give an export object id (assuming it would just choose /) and clicked 'Export'.
I got a 2MB file (big, considering I'd typed in maybe 5k of HTML and 100k of images). I imported that into the Zope server in work. It seemed to be OK, only that it created a folder called 'Zope' and stuck it in there. I decided to try move the folders & DTML documents from /Zope to /, with cut & paste, but I kept getting errors like:
" One or more items referred to in the clipboard data was not found. The item may have been moved or deleted after you copied it. "
Also, I noticed that I had been using a gadfly database - the import did not create a /var/zope/var/gadfly directory at all, so any time I tryed to access those methods, it was throwing me errors !
Have I done something incorrectly ? Or does the import/export functionality not work in 2.5.x ?
You should have exported just the folder you created and worked on. The way youdid it, you exported your entire Zope folder structure into the other Zope installation. That's why it was so big, and the results were rather strange. To export just one folder and its children, just perform the export from the folder you are interested in rather than from the root folder. Also, as others have said, "export" really just exports parts of the Zope object database, which does not include anything in the file system (like products). Furthermore, if you do copy code from the file system into the other installation, make sure to delete any .pyc or .pyo files in the corresponding directories. They may have the paths from the first installation compiled in, and they are likely to be wrong for the new installation. Cheers, Tom P
participants (3)
-
Jens Vagelpohl -
John P. Looney -
Thomas B. Passin