ZODB.Architecture.Connection.exportFile

Documentation
Export an object and all objects reachable from the object to a file.

The file consists of the string 'ZEXP' followed by a sequence of ExportFileRecords.
Parameters
TypeNameDefaultDocumentation
oid the Object ID of the object to be exported
PyObjectfileNoneThe file may be either a file-like object (an object with a write method) or a file name. If a file name is provided, then the corresponding file will be created, if necessary, and opened. If no file object is specified, then a temporary file will be created and used. The file used is returned.
Note
Data are saved immediately. This means that only committed data are saved. Pending changes to the object saved, or to objects reachable from the object are not reflected in the data.