コード例 #1
0
 def load(self):
     if Settings.useProjectServer():
         self._ark = Ark(Settings.serverUrl(), Settings.serverUser(), Settings.serverPassword())
         projects = self._ark.getProjectList()
         self.projectCodeCombo.setMaxCount(len(projects))
         for key in utils.natsorted(projects.keys()):
             self.projectCodeCombo.addItem(projects[key], key)
     self.setProjectCode(Settings.projectCode())
     self.setProjectName(Settings.projectName())
     self.setSiteCode(Settings.siteCode())
     self.setLocation(Settings.locationEasting(), Settings.locationNorthing)
コード例 #2
0
 def load(self):
     if Settings.useProjectServer():
         self._ark = Ark(Settings.serverUrl(), Settings.serverUser(),
                         Settings.serverPassword())
         projects = self._ark.getProjectList()
         self.projectCodeCombo.setMaxCount(len(projects))
         for key in utils.natsorted(projects.keys()):
             self.projectCodeCombo.addItem(projects[key], key)
     self.setProjectCode(Settings.projectCode())
     self.setProjectName(Settings.projectName())
     self.setSiteCode(Settings.siteCode())
     self.setLocation(Settings.locationEasting(), Settings.locationNorthing)
コード例 #3
0
 def loadProject(self, plugin):
     self.projectCodeEdit.setText(Settings.projectCode())
     self.siteCodeEdit.setText(Settings.siteCode())
     self.projectNameEdit.setText(Settings.projectName())
コード例 #4
0
 def loadProject(self, plugin):
     self.projectCodeEdit.setText(Settings.projectCode())
     self.siteCodeEdit.setText(Settings.siteCode())
     self.projectNameEdit.setText(Settings.projectName())