def setZoteroPath(self, path): """ Validate and set the Zotero path Arguments: path -- the Zotero path """ if valid_location(unicode(path)): self.ui.lineEditZoteroPath.setText(path) else: QMessageBox.information(self, "Invalid Zotero path", \ "The folder you selected does not contain 'zotero.sqlite'")
def setZoteroPath(self, path): """ Validate and set the Zotero path Arguments: path -- the Zotero path """ if valid_location(path): self.ui.lineEditZoteroPath.setText(path) else: QMessageBox.information(self, u"Invalid Zotero path", u"The folder you selected does not contain 'zotero.sqlite'")