예제 #1
0
    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'")
예제 #2
0
	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'")