[Zope] Export a piece of zope database
Paul Everitt
Paul@digicool.com
Wed, 10 Feb 1999 14:39:16 -0500
Francois wrote:
> Is there a way to export a folder from zope database in order to
> import this new piece in zope database?
There is an undocumented feature appropriately named a hack:
------------------------------------------------------------------------
----
- Stop-gap export/import
Eventually, there will be an interface for exporting and
importing objects. This has to be done carefully for security
reasons.
As a stop-gap measure, Folders now have the methods:
manage_exportHack -- Export the folder, or one of it's items
If an id is specified, then a sub-object is exported,
otherwise the folder is exported. The object is exported
to the file: 'var/export.bbe' in the Zope installation
directory.
manage_importHack -- Export an object into a folder
An object is imported into the folder from the file:
'var/export.bbe' in the Zope installation
directory.
------------------------------------------------------------------------
----
Amos says he has mostly finished up an official version of this that
will be checked into the final 1.10 release.
--Paul
Paul Everitt Digital Creations
paul@digicool.com 540.371.6909