Package telemeta :: Package backup :: Module core :: Class CollectionSerializer
[hide private]
[frames] | no frames]

Class CollectionSerializer

source code

object --+
         |
        CollectionSerializer

Provide backup-related features

Instance Methods [hide private]
 
__init__(self, collection)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
 
__get_file_md5(self, path)
Compute the MD5 hash of a file (Python version of md5sum)
source code
 
__get_media_filename(self, item) source code
 
store(self, dest_dir)
Serialize and store the collection with related items and media files into a subdirectory of the provided directory
source code
 
get_xml(self)
Return a string containing the XML representation of the collection and related items
source code

Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __str__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, collection)
(Constructor)

source code 

x.__init__(...) initializes x; see x.__class__.__doc__ for signature

Overrides: object.__init__
(inherited documentation)