Package bosco :: Module course :: Class CombinedCourse
[hide private]
[frames] | no frames]

Class CombinedCourse

source code

      object --+        
               |        
ranking.Rankable --+    
                   |    
          BaseCourse --+
                       |
                      CombinedCourse

This class combines several courses to generate a joint ranking of all runns of all the combined courses. This is primarily usefull for rankings of relay legs with different variants. This class is not derived from Course and this is not a Storm object and not stored in the database.

Instance Methods [hide private]
 
__init__(self, course_list, code, store=None)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
_get_members(self)
Get all runs of all the courses in self.course_list.
source code
 
members(self)
Get all runs of all the courses in self.course_list.
source code
 
controlcount(self) source code
 
__str__(self)
str(x)
source code
 
__unicode__(self) source code

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

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, course_list, code, store=None)
(Constructor)

source code 

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

Parameters:
  • course_list (list of either instances of Course or unicode course codes) - List of courses to combine
  • code (Unicode) - Code of this course. This is only for display purposes.
  • store - Storm store which contains the courses referenced by course codes in the course list. May be None if the course list only contains Course objects.
Overrides: object.__init__

__str__(self)
(Informal representation operator)

source code 

str(x)

Overrides: object.__str__
(inherited documentation)