def initializeUI(self): self.vbox.show_all() # lazy initialize this, so its created in rhsm_login controller = autobind.get_controller() self.screen.controller = controller self.screen.load_data( set(controller.sorter.unentitled_products.values()), controller.suitable_slas)
def initializeUI(self): self.vbox.show_all() # lazy initialize this, so its created in rhsm_login controller = autobind.get_controller() self.screen.controller = controller if len(controller.suitable_slas) == 1: service_level = controller.suitable_slas.keys()[0] else: service_level = controller.selected_sla self.screen.load_data(controller.suitable_slas[service_level])