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

Public Member Functions

def __init__ (self, hash_name, expected)
 
def from_url (cls, url)
 
def feed (self, block)
 
def is_valid (self)
 
def report (self, reporter, template)
 

Data Fields

 hash_name
 
 hash
 
 expected
 

Static Public Attributes

 pattern
 

Constructor & Destructor Documentation

◆ __init__()

def __init__ (   self,
  hash_name,
  expected 
)

Member Function Documentation

◆ feed()

def feed (   self,
  block 
)
Feed a block of data to the hash.

Reimplemented from ContentChecker.

◆ from_url()

def from_url (   cls,
  url 
)

◆ is_valid()

def is_valid (   self)
Check the hash. Return False if validation fails.

Reimplemented from ContentChecker.

◆ report()

def report (   self,
  reporter,
  template 
)
Call reporter with information about the checker (hash name)
substituted into the template.

Reimplemented from ContentChecker.

Field Documentation

◆ expected

expected

◆ hash

hash

◆ hash_name

hash_name

◆ pattern

pattern
static

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