Public Member Functions | Public Attributes | List of all members
python.projectstatus.ProjectStatus Class Reference

Public Member Functions

def __init__ (self, projects)
 
def update (self)
 
def get_stage_status (self, stagename)
 

Public Attributes

 projects
 
 stats
 

Detailed Description

Definition at line 19 of file projectstatus.py.

Constructor & Destructor Documentation

def python.projectstatus.ProjectStatus.__init__ (   self,
  projects 
)

Definition at line 23 of file projectstatus.py.

23  def __init__(self, projects):
24 
25  # Initialize attributes.
26 
27  self.projects = projects
28  self.stats = {}
29  for project in projects:
30  for stage in project.stages:
31  self.stats[stage.name] = StageStatus(stage)
32 

Member Function Documentation

def python.projectstatus.ProjectStatus.get_stage_status (   self,
  stagename 
)

Definition at line 44 of file projectstatus.py.

44  def get_stage_status(self, stagename):
45  return self.stats[stagename]
def python.projectstatus.ProjectStatus.update (   self)

Definition at line 35 of file projectstatus.py.

35  def update(self):
36 
37  # Update all stages.
38 
39  for stagename in list(self.stats.keys()):
40  self.stats[stagename].update()
41 

Member Data Documentation

python.projectstatus.ProjectStatus.projects

Definition at line 27 of file projectstatus.py.

python.projectstatus.ProjectStatus.stats

Definition at line 28 of file projectstatus.py.


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