- def load_notes(self, data = None):
- logging.info("load_notes params: pos:"+str(self._pos)+" noteid:"+str(self.noteId))
- self._noteslist.clear_items()
- self._noteslist.append_item(_("new Note"), "new")
-
- self._categoryName = self._topBox.get_category()
- search = self._topBox.get_search_pattern()
- notes = self._db.searchNotes(search, self._categoryName)
-
- if notes is not None:
- for note in notes:
- noteid, category, noteText = note
- title = self._get_title(noteText)
- self._noteslist.append_item(title, noteid)
-
- self.noteId = -1
- self._pos = -1
- self._noteBodyView.get_buffer().set_text("")
-