Package bosco :: Module event :: Class RoundCountEvent
[hide private]
[frames] | no frames]

Class RoundCountEvent

source code

object --+    
         |    
     Event --+
             |
            RoundCountEvent

Instance Methods [hide private]
 
__init__(self, course, mindiff=timedelta(0), header={}, extra_rankings=[], template_dir='templates', print_template='course.tex', html_template='course.html', cache=None, store=None)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
validate(self, obj, validator_class=None, args=None)
Get a validator
source code
 
score(self, obj, scoreing_class=None, args=None)
Get the score of an object
source code

Inherited from Event: clear_cache, format_ranking, list_categories, list_courses, list_rankings, ranking, remove_cache

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

Static Methods [hide private]

Inherited from Event (private): _key, _var_key

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, course, mindiff=timedelta(0), header={}, extra_rankings=[], template_dir='templates', print_template='course.tex', html_template='course.html', cache=None, store=None)
(Constructor)

source code 

x.__init__(...) initializes x; see help(type(x)) for signature

Parameters:
  • mindiff - Minimal time difference between two valid punches @see Event for the other parameters
Overrides: object.__init__

validate(self, obj, validator_class=None, args=None)

source code 

Get a validator

Parameters:
  • obj - object to validate,
  • validator_class - validation class used
  • args - dict of keyword arguments for the validation strategy object
Returns:
validation result from validator_class.validate(obj)
Overrides: Event.validate
(inherited documentation)

score(self, obj, scoreing_class=None, args=None)

source code 

Get the score of an object

Parameters:
  • obj - object to score
  • scoreing_class - scoreing strategy used
  • args - additional arguments for the scoreing class's constructor
Returns:
scoreing result from scoreing_class.score(obj)
Overrides: Event.score
(inherited documentation)