module documentation
_ziputil.py - ZMS ZIP Utility for Exporting and Importing ZODB Objects
This module provides utility functions for exporting ZODB objects to ZIP archives and importing ZIP archives into the ZODB.
License: GNU General Public License v2 or later, Organization: ZMS Publishing
| Function | export |
Export ZODB objects from root container to a ZIP archive. |
| Function | import |
Extract and import a ZIP archive into the ZODB. |
| Function | _export |
Recursively export ZODB objects (Images/Files) from a container into a ZIP file. |
Export ZODB objects from root container to a ZIP archive.
| Parameters | |
| root:OFS.ObjectManager | Root container to export |
| Returns | |
| bytes | ZIP archive data |
Extract and import a ZIP archive into the ZODB.
Creates Folder, Image, and File objects in the ZODB hierarchy matching the ZIP archive structure.
| Parameters | |
| root:OFS.ObjectManager | Root container to import into |
| data:bytes or str or io.BytesIO | ZIP archive data |