def createESGFTab(self): ## layout = QtGui.QVBoxLayout() ## self.esgfBrowser = QEsgfBrowser(self) ## layout.addWidget(self.esgfBrowser) try: esgf = QEsgfBrowser(self) #esgf.addGateway(gateway=customizeUVCDAT.defaultEsgfNode) esgf.addGateway(gateway=str(self.root.preferences.host_url.currentText())) except Exception,err: esgf = QtGui.QLabel("No Internet?\nError log: %s"%err)
def createESGFTab(self): ## layout = QtGui.QVBoxLayout() ## self.esgfBrowser = QEsgfBrowser(self) ## layout.addWidget(self.esgfBrowser) try: esgf = QEsgfBrowser(self) #esgf.addGateway(gateway=customizeUVCDAT.defaultEsgfNode) esgf.addGateway( gateway=str(self.root.preferences.host_url.currentText())) except Exception, err: esgf = QtGui.QLabel("No Internet?\nError log: %s" % err)
def get_host_url(self, index): cur_text=self.host_url.currentText() if not cur_text: cur_text="pcmdi9.llnl.gov" else: cur_text=str(cur_text) esgf=QEsgfBrowser(self) if len(esgf.index )>0: esgf.index.pop(0) esgf.addGateway(cur_text) #esgf.datanode_listwidget.clear() #esgf.data_nodelist=esgf.get_data_nodelist() #for item in esgf.data_nodelist: # esgf.datanode_listwidget.addItem(QtGui.QListWidgetItem(item.strip())) self.data_nodelist=esgf.get_data_nodelist() #esgf.update_data_nodelist(data_nodelist) #if self.selected_host_url == cur_text: # self.changed_host_url=False #else: # self.changed_host_url=True # self.selected_host_url=cur_text return cur_text
def get_host_url(self, index): cur_text = self.host_url.currentText() if not cur_text: cur_text = "pcmdi9.llnl.gov" else: cur_text = str(cur_text) esgf = QEsgfBrowser(self) if len(esgf.index) > 0: esgf.index.pop(0) esgf.addGateway(cur_text) #esgf.datanode_listwidget.clear() #esgf.data_nodelist=esgf.get_data_nodelist() #for item in esgf.data_nodelist: # esgf.datanode_listwidget.addItem(QtGui.QListWidgetItem(item.strip())) self.data_nodelist = esgf.get_data_nodelist() #esgf.update_data_nodelist(data_nodelist) #if self.selected_host_url == cur_text: # self.changed_host_url=False #else: # self.changed_host_url=True # self.selected_host_url=cur_text return cur_text