OpenQuizz
Une application de gestion des contenus pédagogiques
HashMismatch Class Reference
Inheritance diagram for HashMismatch:
Collaboration diagram for HashMismatch:

Public Member Functions

def __init__ (self, allowed, gots)
 
def body (self)
 
- Public Member Functions inherited from HashError
def __str__ (self)
 

Data Fields

 allowed
 
 gots
 

Static Public Attributes

 order
 
 head
 
- Static Public Attributes inherited from HashError
 req
 
 head
 
 order
 

Detailed Description

Distribution file hash values don't match.

:ivar package_name: The name of the package that triggered the hash
    mismatch. Feel free to write to this after the exception is raise to
    improve its error message.

Constructor & Destructor Documentation

◆ __init__()

def __init__ (   self,
  allowed,
  gots 
)
:param allowed: A dict of algorithm names pointing to lists of allowed
    hex digests
:param gots: A dict of algorithm names pointing to hashes we
    actually got from the files under suspicion

Member Function Documentation

◆ body()

def body (   self)
Return a summary of me for display under the heading.

This default implementation simply prints a description of the
triggering requirement.

:param req: The InstallRequirement that provoked this error, with
    its link already populated by the resolver's _populate_link().

Reimplemented from HashError.

Field Documentation

◆ allowed

allowed

◆ gots

gots

◆ head

head
static

◆ order

order
static

The documentation for this class was generated from the following file: