def openDoc(self, name): name = unicode(name) path = self.getPathByName(name) self.createFolders(path) if hasattr(self, "path") and self.path: self.saveDoc() Editor.openDoc(self, path)
def rename(self, oldName, newName): oldName = unicode(oldName) newName = unicode(newName) Editor.rename(self, self.getPathByName(oldName), self.getPathByName(newName))
def deleteDoc(self, name): name = unicode(name) path = os.path.join(self.notesFolder, name) Editor.deleteDoc(self, path)