def set_radio_spaces_frame(self, server: Common, title: str = "Select a space: "): list_spaces = server.get_list_spaces() return CommonWidgets.set_radio_items_frame( parent=self, list_items=list_spaces, default_id=server.config.space_id, title=title)
def verify_spaces(server: Common): if not server.get_list_spaces(): messagebox.showerror( title="No Spaces!", message= f"No spaces can be found on {'source' if server.config.is_source_server else 'target'} " f"server {server.config.endpoint}. Please check your permission and/or credential" ) return False return True