Package duplicity :: Module manifest :: Class Manifest
[hide private]
[frames] | no frames]

Class Manifest

source code

List of volumes and information about each one

Instance Methods [hide private]
Manifest
__init__(self, fh=None)
Create blank Manifest
source code
Manifest
set_dirinfo(self)
Set information about directory from globals, and write to manifest file.
source code
string
check_dirinfo(self)
Return None if dirinfo is the same, otherwise error message
source code
 
add_volume_info(self, vi)
Add volume info vi to manifest and write to manifest
source code
 
del_volume_info(self, vol_num)
Remove volume vol_num from the manifest
source code
string
to_string(self)
Return string version of self (just concatenate vi strings)
source code
string
__str__(self)
Return string version of self (just concatenate vi strings)
source code
 
from_string(self, s)
Initialize self from string s, return self
source code
 
__eq__(self, other)
Two manifests are equal if they contain the same volume infos
source code
 
__ne__(self, other)
Defines !=.
source code
 
write_to_path(self, path)
Write string version of manifest to given path
source code
 
get_containing_volumes(self, index_prefix)
Return list of volume numbers that may contain index_prefix
source code
Method Details [hide private]

__init__(self, fh=None)
(Constructor)

source code 
Create blank Manifest
Parameters:
  • fh (DupPath) - fileobj for manifest
Returns: Manifest
manifest

set_dirinfo(self)

source code 
Set information about directory from globals, and write to manifest file.
Returns: Manifest
manifest

check_dirinfo(self)

source code 

Return None if dirinfo is the same, otherwise error message

Does not raise an error message if hostname or local_dirname are not available.
Returns: string
None or error message

add_volume_info(self, vi)

source code 
Add volume info vi to manifest and write to manifest
Parameters:
  • vi (VolumeInfo) - volume info to add
Returns:
void

del_volume_info(self, vol_num)

source code 
Remove volume vol_num from the manifest
Parameters:
  • vol_num - volume number to delete
Returns:
void

to_string(self)

source code 
Return string version of self (just concatenate vi strings)
Returns: string
self in string form

__str__(self)
(Informal representation operator)

source code 
Return string version of self (just concatenate vi strings)
Returns: string
self in string form

__ne__(self, other)

source code 
Defines !=. Not doing this always leads to annoying bugs...