Package bosco :: Module ranking :: Class Validator
[hide private]
[frames] | no frames]

Class Validator

source code

   object --+    
            |    
CachingObject --+
                |
               Validator

Defines a strategy for validating objects (runs, runners, teams). The validation strategy is tightly coupled to the objects it validates.

Instance Methods [hide private]
 
validate(self, obj)
Returns OK for every object.
source code

Inherited from CachingObject: __init__

Inherited from CachingObject (private): _from_cache, _to_cache

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

Class Variables [hide private]
  OK = 1
  NOT_COMPLETED = 2
  MISSING_CONTROLS = 3
  DID_NOT_FINISH = 4
  DISQUALIFIED = 5
  DID_NOT_START = 6
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

validate(self, obj)

source code 

Returns OK for every object. Override in subclasses for more meaningfull validations.