DBArchive structure

Structure used in ZODB (database) for storing ZIP archives / unpacked directories.

class storage.structures.db.db_archive.DBArchive(**kwargs)

Bases: persistent.Persistent, kwargs_obj.kwargs_obj.KwargsObj

Database structure used to store basic metadata about Archives.

isbn

str – ISBN for the archive.

uuid

str – UUID string to pair the archive with edeposit.

aleph_id

str – ID used in aleph.

dir_pointer

str – Pointer to the directory on the file server.

classmethod from_comm(pub)

Convert communication namedtuple to this class.

Parameters:pub (obj) – Archive instance which will be converted.
Returns:DBArchive instance.
Return type:obj
indexes

Returns – list: List of strings, which may be used as indexes in DB.

project_key
to_comm(light_request=False)

Convert self to Archive.

Returns:Archive instance.
Return type:obj