def layout(self, layout): temp = Layout() if "layout" in layout: temp.layout = layout['layout'] if "showName" in layout: temp.showName = layout['showName'] if "showID" in layout: temp.showID = layout['showID'] self.__layout = temp
def layout(self, layout): temp = Layout() if "layout" in layout: temp.layout = layout['layout'] if "showName" in layout: temp.showName = layout['showName'] if "showID" in layout: temp.showID = layout['showID'] if "showAggregateScores" in layout: temp.showAggregateScores = layout['showAggregateScores'] if "countUnscored" in layout: temp.countUnscored = layout['countUnscored'] if 'aggregateFunction' in layout: temp.aggregateFunction = layout['aggregateFunction'] self.__layout = temp