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

Class OldSHA1

source code

object --+    
         |    
 Algorithm --+
             |
            OldSHA1


Deprecated: Injector versions before 0.20 only supported this algorithm.

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
str
getID(self, digest)
Convert a digest (from new_digest) to a full ID.
source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __init__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Class Variables
int rating = 10
how much we like this algorithm (higher is better)
Properties

Inherited from object: __class__

Method Details

generate_manifest(self, root)

source code 

Returns an iterator that yields each line of the manifest for the directory tree rooted at 'root'.

Parameters:
  • root (str)
Overrides: Algorithm.generate_manifest

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.

Overrides: Algorithm.new_digest
(inherited documentation)

getID(self, digest)

source code 

Convert a digest (from new_digest) to a full ID.

Returns: str
Overrides: Algorithm.getID