def _selectProjectFolder(self): defaultPath = self.field("projectFolder") if defaultPath == '': defaultPath = Settings.projectsFolder() folderName = unicode( QFileDialog.getExistingDirectory(self, self.tr('Project Folder'), defaultPath) ) if folderName: self.setField("projectFolder", folderName)
def load(self): self.setProjectsFolder(Settings.projectsFolder()) self.setUserFullName(Settings.userFullName()) self.setUserInitials(Settings.userInitials()) self.setUserOrganisation(Settings.userOrganisation())
def _defaultProjectFolder(self): projectFolderName = self.field("projectCode") + ' - ' + self.field("projectName") return os.path.join(Settings.projectsFolder(), projectFolderName, 'GIS')