Package zeroinstall :: Package zerostore :: Module manifest :: Class Algorithm
[frames] | no frames]

Class Algorithm

source code

Abstract base class for algorithms. An algorithm knows how to generate a manifest from a directory tree.

Instance Methods
 
generate_manifest(self, root)
Returns an iterator that yields each line of the manifest for the directory tree rooted at 'root'.
source code
 
new_digest(self)
Create a new digest.
source code
 
getID(self, digest)
Convert a digest (from new_digest) to a full ID.
source code
Method Details

new_digest(self)

source code 

Create a new digest. Call update() on the returned object to digest the data. Call getID() to turn it into a full ID string.