def __init__(self, user, visible_data, scheduler_id): self.regions_data = visible_data self.frequency_types = FrequencyTypesBuilder( FrequencyType.objects.all()).get_data() self.scheduler = SharedStorageReportScheduler.objects.get( id=scheduler_id) AdminConsoleSharedStorageBuilder.__init__(self, user)
def get_data(self): array = [] for scheduler in self.schedulers: data = SharedStorageReportSchedulerBuilder( self.user, scheduler).get_report_data() array.append(data) self.result_dict[KEY_DATA] = array return AdminConsoleSharedStorageBuilder.get_data(self)
def __init__(self, user, visible_data): self.regions_data = visible_data self.frequency_types = FrequencyTypesBuilder( FrequencyType.objects.all()).get_data() AdminConsoleSharedStorageBuilder.__init__(self, user)
def __init__(self, user, scheduler): ReportSchedulerBuilder.__init__(self, scheduler) AdminConsoleSharedStorageBuilder.__init__(self, user)
def __generate_data__(self): AdminConsoleSharedStorageBuilder.__generate_data__(self)
def __init__(self, user, schedulers): self.schedulers = schedulers AdminConsoleSharedStorageBuilder.__init__(self, user)
def get_data(self): self.result_dict = AdminConsoleSharedStorageBuilder.get_data(self) self.result_dict = self.get_report_data() return self.result_dict