15 lines
359 B
Python
15 lines
359 B
Python
class ReportPrinter:
|
|
|
|
__reportPrinters=[]
|
|
|
|
def print(self):
|
|
for r in self.__reportPrinters:
|
|
r._print()
|
|
|
|
def append(self, reportPrinter):
|
|
reportPrinter.setProjectList(self.__projectList)
|
|
self.__reportPrinters.append(reportPrinter)
|
|
|
|
def __init__(self, projectList):
|
|
self.__projectList=projectList
|